浏览器的HTTP缓存的存储位置在哪里?磁盘或内存
我只是想知道为什么有些文件来自磁盘缓存而另一些文件来自内存缓存,HTTP 缓存背后的机制是什么?哪个缓存的优先级更高?
看起来脚本和样式表存储在磁盘中,而图像和字体存储在内存中。
也许是解决方案
- 内存缓存存储图像和字体等小文件
- 磁盘缓存存储js和css等大文件
磁盘缓存的缓存控制
https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching
https://web.dev/http-cache/ https://web.dev/http-cache/
https://developers.google.com/web/fundamentals/performance/get-started/httpcaching-6 https://developers.google.com/web/fundamentals/performance/get-started/httpcaching-6
https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)