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

前端之家收集整理的这篇文章主要介绍了php – 标题(“Expires:0”)是做什么的?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
参见英文答案 > 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.

原文链接:https://www.f2er.com/php/131786.html

猜你在找的PHP相关文章