Which browsers support “Cache-control: immutable”?

谁说胖子不能爱 提交于 2019-12-04 16:25:51

问题


I've read that Firefox has begun supporting a cache control extension value of immutable, which means that "the response body will not change over time." So even if a user requests a "full refresh" of a page or resource, the browser still only responds with the locally cached copy, thus avoiding unnecessary 304s or page refreshes, and making pages load faster since cached content is used, and decreasing load on servers, since a large number of requests are stopped before they even happen.

I'm trying to see how well this is supported, and am finding varying answers, as this mozilla page suggests that it's only supported in Firefox, but this resolved Chrome issue suggests it's been available since Chrome v54.

Which browsers support Cache-Control: immutable, and when did they start supporting it?

I first read about it here on this Hacker News discussion

Here's an ietf draft on it, the original mozilla post announcing this beta feature being used by Facebook and this related mozilla post, and a document discussing the different types of reloading requests from some Google chrome devs, it appears.


回答1:


As of February 2017, Cache-Control: immutable is supported by

  • Firefox (https://bugzilla.mozilla.org/show_bug.cgi?id=1267474) since Firefox 49
  • Chrome (https://bugs.chromium.org/p/chromium/issues/detail?id=611416) since Chrome 54 They aren't implementing this.
  • Safari (https://bugs.webkit.org/show_bug.cgi?id=167497) in Safari Technology Preview 24.



回答2:


As of April 2017 it is also supported in Edge



来源:https://stackoverflow.com/questions/41936772/which-browsers-support-cache-control-immutable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!