Skip to content
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的缓存机制 #14

Open
Pieces312 opened this issue Sep 28, 2020 · 0 comments
Open

HTTP的缓存机制 #14

Pieces312 opened this issue Sep 28, 2020 · 0 comments
Labels

Comments

@Pieces312
Copy link
Owner

浏览器在本地磁盘中将用户之前请求的数据缓存起来,当访问者再次需要该数据时无需再次发送请求,直接从浏览器本地获取数据即可。

缓存的好处:

  • 减少请求的个数,节省带宽,避免浪费不必要的网络资源;
  • 减轻服务器的压力;
  • 提高网页的加载速度,提高用户体验。

分类: 1)强缓存;2)协商缓存
image

文章链接:https://juejin.im/post/6874484538542653447

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant