我有一个客户端,它有服务器端缓存,其中的东西会在3天内到期。
所以客户端清除浏览器缓存并仍然从服务器获取旧东西。
元标记no-cache是否会阻止服务器缓存?或者只会停止客户端缓存?
答案 0 :(得分:0)
要缓存控制,最好的方法只是服务器配置,也许你有一个代理,它也是一个缓存。
我对服务器(页面或Web服务器应用程序)配置感到满意,如下所示:
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
我希望能帮到你