作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我生成一个页面时,我会发送标题
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Last-Modified: Mon, 04 Apr 2011 20:08:33 GMT
Vary: Accept-Encoding
Date: Mon, 11 Apr 2011 01:36:21 GMT
Content-Length: 3019
然后,当我尝试再次获取此页面时,所有浏览器都会发送正确的请求并获得 304 响应,但 Safari 除外 - 它从不发送 if-modified-since。它总是重新加载整个页面,即使它没有被更改
Safari 的这种行为是否已知以及如何使 Safari 以正确的方式工作?
最佳答案
Bart Lateur wrote a post关于这一点,其中有一段是关于 Safari 的:
Safari takes this even one step further: if the header isn't a date in http standard form, then the header is simply dropped. It simply doesn't send an If- Modified-Since header on the next request.
关于safari - 如何让 Safari 发送 if-modified-since header ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5616015/
我是一名优秀的程序员,十分优秀!