【发布时间】:2015-09-26 05:57:09
【问题描述】:
我不希望我的 HTML5 页面被缓存,所以我在我的 HTML 文件下使用这些标签
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<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" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script src="js/jquery-1.10.2.min.js"></script>
</head>
当我使用 http://validator.w3.org/check 验证这些时,
它的说法是
元素元上属性 http-equiv 的值缓存控制错误。
<meta http-equiv="cache-control" content="max-age=0" />
元素元上属性 http-equiv 的值缓存控制错误。
<meta http-equiv="cache-control" content="no-cache" />
元素元上的属性 http-equiv 的错误值过期。
<meta http-equiv="expires" content="0" />
元素元上的属性 http-equiv 的错误值过期。
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
元素元上属性 http-equiv 的错误值编译指示。
<meta http-equiv="pragma" content="no-cache" />
您能告诉我如何解决这个问题吗??
【问题讨论】:
标签: html