html怎么设置http头部缓存

WBOY
發布: 2016-06-06 20:10:23
原創
1088 人瀏覽過

像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>
登入後複製

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

<code><meta http-equiv="Pragma" contect="no-cache"></code>
登入後複製
相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!