caching - 元标记无缓存是否会阻止路由器缓存?

标签 caching

我有以下元标记,据说可以防止浏览器缓存

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

这是否会阻止缓存服务器保存内容,如果不能,是否有办法阻止路由器/服务器缓存?

最佳答案

来自here

Why META Cache Controls Don't Always Work

Note that the META tags in our example both used the HTTP-EQUIV attribute, which tries to mimic HTTP header information. HTTP headers control how both browser and proxy caches handle your Web pages. They are invisible in HTML and usually generated automatically by your Web server.

您最好使用 HTTP header 来设置缓存属性。引用文献

http://support.microsoft.com/kb/234067

http://www.htmlgoodies.com/beyond/reference/article.php/3472881

关于caching - 元标记无缓存是否会阻止路由器缓存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2200957/

相关文章:

caching - Ehcahe 版本 3.X 中对 JMS/RMI 复制的支持停止了吗?

java - Redis如何将值存储为json

caching - 强制刷新多个资源的浏览器缓存(CSS 和 Javascript)

.net - XmlDocument缓存内存使用

caching - MySQL 8 警告 : SQL_NO_CACHE is deprecated

ruby-on-rails - Rails 中的页面缓存

caching - 超出 Neo4j GC 开销限制

Android 退出时清除外部图像缓存

php - Laravel View 缓存是如何工作的?

caching - Azure 存储和 CDN 以及获取 blob