What heuristics do browsers use to cache resources not explicitly set to be cachable?

后端 未结 5 1925
小鲜肉
小鲜肉 2020-12-01 03:17

13.2.2 Heuristic Expiration

Since origin servers do not always provide explicit expiration times, HTTP caches typically assign heuristic

5条回答
  •  余生分开走
    2020-12-01 03:47

    Seems like webkit ("...the OS X system framework version of the engine that's used by Safari...") uses the same heuristics as Chromium.

    The following is taken from CacheValidation.cpp:

    return (creationTime - lastModifiedValue) * 0.1;
    

提交回复
热议问题