-
Notifications
You must be signed in to change notification settings - Fork 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
阿里巴巴:浏览器的强缓存和协商缓存(一面) #29
Comments
图文并茂,条理清晰,赞用心的写作 |
yiliang114
changed the title
To zhijianzhang: 浏览器的强缓存和协商缓存(阿里)
To yiliang114: 浏览器的强缓存和协商缓存(阿里)
May 4, 2019
我觉得这段表述的不太准确,Date确实是服务器响应时间,但是与资源的有效期无关。资源的有效期应该是:客户端接收到资源的时间点到3600s之间的这段时间,max-age相对的是客户端接收到响应的时间,而不是Date。这也就解释了你所描述的在 max-age 时间内重新访问资源却会返回 304 not modified的这一现象,原因就是服务器时间比客户端时间要快一些。 @yiliang114 |
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: