元标记中的值不好 [英] Bad values in meta tags

查看:122
本文介绍了元标记中的值不好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从w3c验证程序将html5验证程序传递到我的网站时,出现问题。接下来是错误:

I've got a problem when I pass the html5 validator to my site from w3c validator. The errors are next:

Bad value Content-Script-Type for attribute http-equiv on element meta
<meta http-equiv="Content-Script-Type" content="text/javascript" >

Bad value expires for attribute http-equiv on element meta
<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT" >

Bad value pragma for attribute http-equiv on element meta
<meta http-equiv="pragma" content="no-cache" >

Bad value Cache-Control for attribute http-equiv on element meta.
<meta http-equiv="Cache-Control" content="no-cache" >

传递html5验证器的元标记的正确值是什么?

What are the correct values to meta tags to pass html5 validator?

推荐答案

对于HTML5,您在标头中使用缓存清单文件。
这是一个如何使用的示例:
http ://www.w3.org/TR/html5/browsers.html#manifests

For HTML5 you use a cache manifest file in the header. This is an example of how to use: http://www.w3.org/TR/html5/browsers.html#manifests

另外,你不用强制缓存:

Also, you force no cache with this:

<meta http-equiv="expires" content="0">

这是关于如何使用缓存清单文件的一个很好的教程:
https://www.html5rocks.com/en/tutorials/ appcache / beginner /#toc-manifest-file-creating

This is a good tutorial on how to use the cache manifest file: https://www.html5rocks.com/en/tutorials/appcache/beginner/#toc-manifest-file-creating

这篇关于元标记中的值不好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆