通过元标记防止网站缓存

时间:2016-03-23 09:01:17

标签: html caching

我在互联网上做了大量研究,发现了不同缓存元标记的影响和支持。

以下元标记涵盖了所有浏览器对不缓存的支持,如已回答here

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

经过大量研究后,我发现人们所说的内容存在很多矛盾。有人说IE 6之后不再支持<meta http-equiv="pragma" content="no-cache" />,Firefox和Chrome也不支持此功能。

有人可以告诉我或者给我一个明确的解释,也许还有引用(http vs https),哪些浏览器支持(不支持)元标记?这对我和其他人也有帮助!谢谢

0 个答案:

没有答案