To avoid cache control in firefox

坚强是说给别人听的谎言 提交于 2019-12-11 04:46:17

问题


When the response header is

Cache-Control : no-store

Firefox stores in memory cache device.

If the response header is

Cache-Control : no-cache

then firefox stores in disk cache device.

If the response header is

Cache-Control : no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0

then firefox stores in memory cache device

However firefox caching the request in any of one cache device. How to avoid that


回答1:


  1. try to set expire or max-age to minimum?
  2. another example: Cache-Control: "private, no-cache, no-cache=Set-Cookie, proxy-revalidate"
  3. also another way is to do like file.png?97887987979797 (not best...)
  4. another example from google: Cache-Control: "private, max-age=0" Expires: "-1"


来源:https://stackoverflow.com/questions/18233115/to-avoid-cache-control-in-firefox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!