元标记w3c验证错误html 5

时间:2013-06-24 06:27:55

标签: html5 w3c-validation

我在验证网页时遇到此错误(html 5)"Bad value Cache-Control for attribute http-equiv on element meta."

这是我在页面源代码上的HTML代码:

<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test</title>
<meta name="description" content="Lorem ipsum dolor site amet"/>
<meta name="keywords" content="Lorem ipsum dolor site amet"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta name="robots" content="index, follow" />

如何解决这个问题?

1 个答案:

答案 0 :(得分:2)

HTML5中不允许使用http-equivCache-Control

您只能使用values listed in the HTML5规范以及WHATWG wiki page "PragmaExtensions"中注册的规范。

如果您需要它并认为它很有用,您可以尝试register it