请教高手:header里面的post-check是什么意思?

zairwolft 2006-02-22 03:08:25
@header("Expires: 0");
@header("Cache-Control: private, post-check=0, pre-check=0, max-age=0", FALSE);
@header("Pragma: no-cache");

如上三段。请大略解释一下或者给个相关资料的地址。谢谢。
...全文
579 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
lisoon 2006-02-22
  • 打赏
  • 举报
回复
在w3c,http/1.1我记得Cache-Control好像没有什么post-check.
估计是ms专有的东西,去MSDN查,应该有资料的。

君子兰本身就是高手嘛。
gu1dai 2006-02-22
  • 打赏
  • 举报
回复
请查http协议。
查出结果建议帖上来分享,呵呵。
zairwolft 2006-02-22
  • 打赏
  • 举报
回复
最近为了加快页面的显示速度,用尽手法仍不得其解。

谢谢楼上两位指点搜索方法和鼓励。

找到了http协议了,放在了这里备查吧:http://www.read8.net/bbs/blog/detail.php?username=书生&aid=43&page=index

不过对于我那个还是不得其解。post-check的只在msdn找到这样一段:

The following code example demonstrates the use of a cache-control extension supported by Internet Explorer. The server is indicating to the browser that the content will not change for one hour (pre-check=3600) and instructs it to retrieve the content directly from the local cache. However, if the content is modified by the server and the page is requested by the user within a fifteen-minute (post-check= 900) to one-hour period, the browser displays the information found in the local cache but also performs a background check and optional fetch of the new content on the server.

不过我大体也明白了那三行的意思,无非就是说当前页面不缓存就是了。本来还以为会对我程序的显示有什么改进呢。看来是无用功了。

21,890

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧