加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – 标题(“Expires:0”)是做什么的?

发布时间:2020-12-13 16:37:22 所属栏目:PHP教程 来源:网络整理
导读:参见英文答案 HTTP Expires header values “0” and “-1”3个 有谁能解释一下? 一般用于防止缓存.但是,本文档可能会为您提供更好的解释: http://download.oracle.com/docs/cd/E13158_01/alui/wci/docs103/devguide/tsk_pagelets_settingcaching_httpexpi
参见英文答案 > HTTP Expires header values “0” and “-1”3个
有谁能解释一下?
一般用于防止缓存.但是,本文档可能会为您提供更好的解释:

http://download.oracle.com/docs/cd/E13158_01/alui/wci/docs103/devguide/tsk_pagelets_settingcaching_httpexpires.html

报价:

Never use Expires = 0 to prevent caching. The Expires header is sent by the remote server and passed through to the browser by the Portal Server. Unless the time on all three machines is synchronized,an Expires=0 header can mistakenly return cached content. To solve this problem,set the Expires header to a fixed date that is definitely in the past.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读