搜尋 Mozilla 技術支援網站

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

Learn More

Cache-control: no-cache is not working in firefox

  • 無回覆
  • 1 有這個問題
  • 12 次檢視
more options

I had my website which sends the response header as cache:control set to "no-store, no-cache". After logout when the user is pressing the back button user is thrown with the cache-expired page, this is working fine. But if the user clicks on the view-page-source on the cache expired page, user is thrown with the source code of the previous logged in page.

Do we need any specific response header for mozilla to disable the caching of the source code ? Your help is appreciated.

Thanks in advance.

I had my website which sends the response header as cache:control set to "no-store, no-cache". After logout when the user is pressing the back button user is thrown with the cache-expired page, this is working fine. But if the user clicks on the view-page-source on the cache expired page, user is thrown with the source code of the previous logged in page. Do we need any specific response header for mozilla to disable the caching of the source code ? Your help is appreciated. Thanks in advance.