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

浏览器缓存 #136

Open
Popxie opened this issue Oct 14, 2022 · 0 comments
Open

浏览器缓存 #136

Popxie opened this issue Oct 14, 2022 · 0 comments

Comments

@Popxie
Copy link
Owner

Popxie commented Oct 14, 2022

缓存类型:强制缓存 && 协商缓存(304 未更新)

301是永久重定向,而302是临时重定向
image

协商缓存

  • Last-Modified / If-Modified-Since
  • Etag(服务端) / If-None-Match(浏览器)

注:Etag / If-None-Match优先级高于Last-Modified / If-Modified-Since,同时存在则只有Etag / If-None-Match生效。

强制缓存

  • Cache-Control与Expires

参考

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

No branches or pull requests

1 participant