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

在浏览器中输入URL地址到页面显示出来中间发生什么了呢? #10

Open
mamba-1024 opened this issue Oct 16, 2018 · 3 comments

Comments

@mamba-1024
Copy link
Owner

mamba-1024 commented Oct 16, 2018

以前别人问我这个问题的时候,起初一时间还是不知道怎么回答,不过仔细想想,这个问题涉及的东西还是蛮多的。如果是自己的话,估计也回答不好。。。

@mamba-1024
Copy link
Owner Author

从网上看看了觉得以下对我帮助很大

@mamba-1024
Copy link
Owner Author

mamba-1024 commented Oct 16, 2018

DNS域名解析过程图解

@mamba-1024
Copy link
Owner Author

浏览器的缓存机制

  • 强制缓存
  • 协商缓存

强制缓存优先于协商缓存进行,若强制缓存(Expires和Cache-Control)生效则直接使用缓存,若不生效则进行协商缓存(Last-Modified / If-Modified-Since和Etag / If-None-Match),协商缓存由服务器决定是否使用缓存,若协商缓存失效,那么代表该请求的缓存失效,重新获取请求结果,再存入浏览器缓存中;生效则返回304,继续使用缓存

TP传送门
浏览器缓存知识小结及应用

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

No branches or pull requests

1 participant