ITeye博客

Browser side cache tips

mmdev · 2010-12-04 20:15 · Markdown

*) if enabling firefox browser side cache, it might lead to that some pageswould not berefreshed. for example, if ssl is enabled for some pages, it willcause the same page sometimes with security certificated barwhile 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">

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。