exposir / TIL

📝 Today I Learned
https://exposir.github.io/blog/
4 stars 0 forks source link

缓存的那些事 #87

Closed exposir closed 2 years ago

exposir commented 2 years ago

https://stackoverflow.com/questions/65119445/chrome-browser-shows-200from-disk-cache-only-if-etag-and-last-modified-date-bo

https://juejin.cn/post/7017710911443959839#heading-4

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#revalidation_and_reloading

https://datatracker.ietf.org/doc/html/rfc7234#section-4.2.2

如果没有 Cache-Contorl 和 Expires 的 header,但有 Last-Modified,很多浏览器会这样计算 (current time - last modified time) / 10