Browser side cache tips

来源:互联网 发布:logic pro windows版 编辑:程序博客网 时间:2024/05/19 09:14

*) if enabling firefox browser side cache, it might lead to that some pages would not be refreshed. for example, if ssl is enabled for some pages, it will cause the same page sometimes with security certificated bar while sometimes even the url has been redirected to https, the security bar will not be displayed

 

about:config to check cache related advanced configurations.

network.http.use-cache = false.

 

*) F5/CTRL+F5 standards:

http://stackoverflow.com/questions/385367/what-requests-do-browsers-f5-and-ctrl-f5-refreshes-generate

 

*) programming ways to disable client side cache:

<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">

 

if didn't work, explicitly setting a date clearly in the past as below:
<META HTTP-EQUIV="expires" CONTENT="Wed, 19 Feb 2003 08:00:00 GMT">

原创粉丝点击