ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • ما من ردود
  • 1 has this problem
  • 12 views
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.