gpt4 book ai didi

safari - 如何让 Safari 发送 if-modified-since header ?

转载 作者:行者123 更新时间:2023-12-04 14:42:38 27 4
gpt4 key购买 nike

当我生成一个页面时,我会发送标题

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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com