我在验证网页时遇到此错误(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" />
如何解决这个问题?
答案 0 :(得分:2)
HTML5中不允许使用http-equiv
值Cache-Control
。
您只能使用values listed in the HTML5规范以及WHATWG wiki page "PragmaExtensions"中注册的规范。
如果您需要它并认为它很有用,您可以尝试register it。