页面检索:
<meta name="robots" content="all" />
all:文件将被检索,且页面上的链接可以被查询;
none:文件将不被检索,且页面上的链接不可以被查询;
index:文件将被检索;
noindex:文件将不被检索,但页面上的链接可以被查询;
follow:页面上的链接可以被查询;
nofollow:文件将被检索,但页面上的链接不可以被查询。
页面作者:
<meta name="author" content="我的站长站" />
采用程序开发:
<meta name="generator" content="dreamviewer" />
版权信息:
<meta name="copyright" content="我的站长站版权所有" />
设置网站重访时间:
<meta name="revisit-after" content="30day" />
30day代表30天
设置浏览器窗口的大小和缩放:
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
网页过期时间
<meta http-equiv="expires" content="2020 05:28:00 GMT+0800 (CST)" />
禁止浏览器本地缓存:
<meta http-equiv="Pragma" content="no-cache" />
设置自动刷新或者跳转新页面:
<meta http-equiv="Refresh" content="5;URL=www.wdzzz.com" />
content第一个数字代表 5 秒后自动刷新
设置 Cookie:
<meta http-equiv="Set-Cookie" content="cookie value=xxx;expires=2020 05:28:00 GMT+0800 (CST) path=/" />
强制页面当前窗口显示:
<meta http-equiv="Window-target" content="top" />
页面编码:
<meta http-equiv="content-Type" content="text/html;charset=gb2312" />
页面语言:
<meta http-equiv="Content-Language" content="zh-cn" />
页面缓存:
<meta http-equiv="Cache-Control" content="no-cache" />
no-cache: 先发送请求,与服务器确认该资源是否被更改,如果未被更改,则使用缓存。
no-store: 不允许缓存,每次都要去服务器上,下载完整的响应。(安全措施)
public :缓存所有响应,但并非必须。因为max-age也可以做到相同效果
private :只为单个用户缓存,因此不允许任何中继进行缓存。(比如说CDN就不允许缓存private的响应)
maxage :表示当前请求开始,该响应在多久内能被缓存和重用,而不去服务器重新请求。例如:max-age=60表示响应可以再缓存和重用 60 秒。