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

用户的刷新行为对缓存的影响 #198

Open
TieMuZhen opened this issue May 9, 2022 · 0 comments
Open

用户的刷新行为对缓存的影响 #198

TieMuZhen opened this issue May 9, 2022 · 0 comments

Comments

@TieMuZhen
Copy link
Owner

行为一:

浏览器新开窗口的输入url进行访问,先检查强缓存,如果命中Status Code会显示200 OK (from disk cache)或者200 OK (from memory cache)
image

行为二:

地址回车或者正常重新加载(command + r)会导致浏览器跳过检查强缓存,直接去服务器检查协商缓存,如果命中则Status Code会显示304 Not Modified
image

行为三:

硬性的重新加载行为(command + shift + r)会导致浏览器跳过强缓存跟协商缓存,直接去请求新的资源文件,返回状态码200。
image

行为四:

清空缓存并硬性重新加载。会导致浏览器把缓存清空掉,直接去请求资源,返回状态码200。

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