后台管理meta总结

<meta http-equiv="X-UA-Compatible" content="IE=edge">
# 以上代码告诉IE浏览器,IE8/9及以后的版本都会以最高版本IE来渲染页面。

<meta name="robots" content="noindex"/>

# 这一条是告诉搜索引擎该怎么索引此页的,content里面的项有一下几种
none:搜索引擎将忽略此网页,等价于noindex,nofollow。noindex:搜索引擎不索引此网页。nofollow:搜索引擎不继续通过此网页的链接索引搜索其它的网页。all:搜索引擎将索引此网页与继续通过此网页的链接索引,等价于index,follow。index:搜索引擎索引此网页。follow:搜索引擎继续通过此网页的链接索引搜索其它的网页。

<meta http-equiv="pragma" content="no-cache">,

# pragma与no-cache用于定义页面缓存,不缓存页面(为了提高速度一些浏览器会#缓存浏览者浏览过的页面,通过下面的定义,浏览器一般不会缓存页面,而且浏览器无法脱机浏览.)

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

# 指定Expires值为一个早已过去的时间,那么访问此网时若重复在地址栏按回车,那么每次都会重复访问: Expires: Fri, 31 Dec 1999 16:00:00 GMT 比如:禁止页面在IE中缓存 http响应消息头部设置: CacheControl = no-cache Pragma=no-cache Expires = -1 Expires是个好东东,如果服务器上的网页经常变化,就把它设置为0,表示立即过期。

猜你喜欢

转载自blog.csdn.net/weixin_41829196/article/details/81451273
今日推荐