简体   繁体   English

是否可以完全关闭Safari或任何现代浏览器中的缓存?

[英]Is it possible to completely turn off caching in Safari or any modern browser?

I know it is possible to clear the cache in a browser via shortcuts: Disable cache in browser . 我知道可以通过快捷方式清除浏览器中的缓存: 禁用浏览器中的缓存 But it is possible to completely turn off caching in Safari or any modern browser? 但是有可能完全关闭Safari或任何现代浏览器中的缓存吗? From my experience and the OSX process logs, Safari's "disable caches" option does not completely disable caches in Safari. 根据我的经验和OSX进程日志,Safari的“禁用缓存”选项并未完全禁用Safari中的缓存。

https://stackoverflow.com/a/1341133/3207478 https://stackoverflow.com/a/1341133/3207478

this should do it: 这应该做到这一点:

<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" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM