-
Notifications
You must be signed in to change notification settings - Fork 1
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
第十二题:http缓存策略 #12
Comments
什么是http缓存在用户访问网站第一次进行请求的时候,会将请求数据储存在某个可以快速到达和读取的仓库,再重新请求的时候就会调用仓库里的数据。 http缓存的意义
http的缓存策略
|
什么是缓存浏览器缓存(Brower Caching)是浏览器对之前请求过的文件进行缓存,以便下一次访问时重复使用,节省带宽,提高访问速度,降低服务器压力。(简言之,就是告诉浏览器在约定的这个时间前,可以直接从缓存中获取资源而无需跑到服务器去获取)。 HTTP缓存机制主要在http响应头中设置,响应头中相关字段为Expires、Cache-Control、Last-Modified、Etag。 缓存的类别浏览器缓存分为强缓存和协商缓存
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: