-
Notifications
You must be signed in to change notification settings - Fork 889
第 8 题:说一下 Http 缓存策略,有什么区别,分别解决了什么问题 #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
1)浏览器缓存策略 浏览器每次发起请求时,先在本地缓存中查找结果以及缓存标识,根据缓存标识来判断是否使用本地缓存。如果缓存有效,则使
HTTP缓存都是从第二次请求开始的:
2)强缓存
3)强缓存-expires
4)强缓存-cache-control
5)协商缓存
6)协商缓存-协商缓存-Last-Modified/If-Modified-since
7)协商缓存-Etag/If-None-match
|
Nice~ |
cache-control的默认值不是private吗 |
@RabbDream 已修改,感谢指正Thanks♪(・ω・)ノ |
请问有大佬解答请求头和响应头都设置了cache-control后的区别和优先级吗 |
Uh oh!
There was an error while loading. Please reload this page.
欢迎在下方发表您的优质见解
The text was updated successfully, but these errors were encountered: