Home > Backend Development > PHP Tutorial > html怎么设置http头部缓存

html怎么设置http头部缓存

WBOY
Release: 2016-06-06 20:10:23
Original
1122 people have browsed it

像php可以这样设置头部缓存
header("Cache-Control: no-store, no-cache");
html怎么设置头部缓存?
具体的说html怎么设置响应头
Cache-Control: no-cache

回复内容:

像php可以这样设置头部缓存
header("Cache-Control: no-store, no-cache");
html怎么设置头部缓存?
具体的说html怎么设置响应头
Cache-Control: no-cache

用于设定网页的到期时间,一旦过期则必须到服务器上重新调用。需要注意的是必须使用GMT时间格式;

<code><meta http-equiv="Expires" contect="Mon,12 May 2001 00:20:00 GMT">
</code>
Copy after login

用于设定禁止浏览器从本地机的缓存中调阅页面内容,设定后一旦离开网页就无法从Cache中再调出;

<code><meta http-equiv="Pragma" contect="no-cache"></code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template