php header if-modified-since,获取浏览器以发送If-None-Match和If-Modified-Since

我的浏览器不会为PHP生成的内容发回If-Modified-Since Header

在我的脚本发送的第一个请求上:

(Status-Line) HTTP/1.1 200 OK

Date Thu, 21 Jan 2010 08:55:25 GMT

Server Apache/2.2.11 (Win32) PHP/5.2.9-1

X-Powered-By PHP/5.2.9-1

Pragma no-cache

x-ua-compatible IE=8;FF=3;OtherUA=4

Last-Modfied Sat, 02 Jan 2010 02:02:20 GMT

Content-Length 28453

Etag b98e0795b509be20146f58e06fbb624f

Keep-Alive timeout=5, max=90

Connection Keep-Alive

Content-Type image/png

它发送的第二个请求:

(Request-Line) GET /kincumberunitingchurch/banner_image.php?id=1 HTTP/1.1

Host localhost

User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.17) Gecko/2009122116 Firefox/3.0.17

Accept image/png,image/*;q=0.8,*/*;q=0.5

Accept-Language en-us,en;q=0.5

Accept-Encoding gzip,deflate

Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive 300

Connection keep-alive

Referer http://localhost/kincumberunitingchurch/index.php?sid=tgl9jq3f71nau3cj9vps6pna03

Cookie sid=tgl9jq3f71nau3cj9vps6pna03; PHPSESSID=m0jvven6d7l65pl6odm9ecfnt4

If-None-Match b98e0795b509be20146f58e06fbb624f

Cache-Control max-age=0

对于服务器首先发送的其他文件:

(Status-Line) HTTP/1.1 200 OK

Date Thu, 21 Jan 2010 08:55:25 GMT

Server Apache/2.2.11 (Win32) PHP/5.2.9-1

Last-Modified Wed, 30 Dec 2009 02:40:58 GMT

Etag "1000000013d35-40d9-47be9117f6280"

Accept-Ranges bytes

Content-Length 16601

Keep-Alive timeout=5, max=84

Connection Keep-Alive

Content-Type image/png

我的浏览器会在下一个请求中发送以下内容:

(Request-Line) GET /kincumberunitingchurch/img/cbuttons.png HTTP/1.1

Host localhost

User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.17) Gecko/2009122116 Firefox/3.0.17

Accept image/png,image/*;q=0.8,*/*;q=0.5

Accept-Language en-us,en;q=0.5

Accept-Encoding gzip,deflate

Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive 300

Connection keep-alive

Referer http://localhost/kincumberunitingchurch/mystyle.css

Cookie sid=tgl9jq3f71nau3cj9vps6pna03; PHPSESSID=m0jvven6d7l65pl6odm9ecfnt4

If-Modified-Since Wed, 30 Dec 2009 02:40:58 GMT

If-None-Match "1000000013d35-40d9-47be9117f6280"

Cache-Control max-age=0

为什么它会发送If-Modified-Since标头

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值