搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Preventing Sensitive Sites from Showing in Tiles

  • 2 回覆
  • 1 有這個問題
  • 2 次檢視
  • 最近回覆由 emrys

more options

As a web application developer, is there a way to prevent my app's site from showing up as a tile in the New Tab view, without any Firefox configuration changes or end-user intervention? For example, is there some way to serve the page (e.g., with particular headers) that will prevent it from appearing as a tile?

My use case is a private corporate web app that serves highly confidential images, and those images and pages containing them should never appear in the New Tab view of any user that uses the app. It is not possible to rely on Firefox settings changes to accomplish this, because there are users whose browser I have no control over.

I've seen the other questions about how end-users can affect tiles, and none of those are relevant, since I need a way that doesn't require end user intervention. I also searched bugzilla and didn't see any tickets there discussing this issue, and I wasn't able to find any webapp-developer-focused documentation about tiles.

As a web application developer, is there a way to prevent my app's site from showing up as a tile in the New Tab view, without any Firefox configuration changes or end-user intervention? For example, is there some way to serve the page (e.g., with particular headers) that will prevent it from appearing as a tile? My use case is a private corporate web app that serves highly confidential images, and those images and pages containing them should never appear in the New Tab view of any user that uses the app. It is not possible to rely on Firefox settings changes to accomplish this, because there are users whose browser I have no control over. I've seen the other questions about how end-users can affect tiles, and none of those are relevant, since I need a way that doesn't require end user intervention. I also searched bugzilla and didn't see any tickets there discussing this issue, and I wasn't able to find any webapp-developer-focused documentation about tiles.

所有回覆 (2)

more options

hi, as per bug 754608 you might want to use Cache-Control: no-store to avoid thumbnails being created.

more options

Thanks for the response. That kind of works, and it's good enough for my needs.

What I found is that having "Cache-Control: no-store,no-cache" on the image itself does not prevent the image being visible in the tile, but having "Cache-Control: no-store", as you suggest, on the entire page sort of works: FF will still create a tile for the site in that case, but the tile will have no content. It'll just have a tile with the title underneath, but the tile image is blank.

Adding 'no-store' for the page itself does not affect tiles for sites that have already been visited and have a tile though.