gpt4 book ai didi

cross-browser - 浏览器对电子标签的支持

转载 作者:行者123 更新时间:2023-12-03 10:42:50 25 4
gpt4 key购买 nike

我正在努力让我的网站支持 eTag/If-None-Match 浏览器缓存,但我不确定哪些浏览器支持/不支持它。任何人都可以指出我的 list 吗?我无法想象它是普遍的,但我还没有发现任何支持这种说法的东西。

干杯,
麦克风

最佳答案

HTTP 1.1(1999 年 6 月)中指定了 If-None-Match:

  • http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
  • http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol

  • 根据维基百科:

    By March 1996, pre-standard HTTP/1.1 was supported in Arena, Netscape 2.0, Netscape Navigator Gold 2.01, Mosaic 2.7, Lynx 2.5, and in Internet Explorer 3.0. End user adoption of the new browsers was rapid. In March 1996, one web hosting company reported that over 40% of browsers in use on the Internet were HTTP 1.1 compliant. That same web hosting company reported that by June 1996, 65% of all browsers accessing their servers were HTTP/1.1 compliant. The HTTP/1.1 standard as defined in RFC 2068 was officially released in January 1997. Improvements and updates to the HTTP/1.1 standard were released under RFC 2616 in June 1999.



    根据我的经验,所有流行的浏览器,IE5.5+、Safari、Chrome、Opera 和 Firefox,都支持 ETag/If-None-Match header 。

    但是,还有一些其他 header 会阻止这些浏览器尊重 etag ......所以如果它不适合你,我会仔细检查当他们请求资源时发送回客户端的其他 header 。

    你有什么特别的理由问这个问题吗?也许如果您有一个遇到问题的特定实例,我们可以查看其他标题?

    但是这些 header 已经存在很长时间了,它们是网络上广泛使用的关键缓存机制。

    关于cross-browser - 浏览器对电子标签的支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6247761/

    25 4 0