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

在默认缓存策略下,重用后的webView会忽略304缓存,每次都会重新获取主html #47

Open
karosLi opened this issue Aug 3, 2020 · 0 comments

Comments

@karosLi
Copy link

karosLi commented Aug 3, 2020

默认缓存策略
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:requestURL];

实际复现步骤:
1、打开一个支持协商缓存的h5
2、退出当前h5,然后重新进入,会发现有重新请求h5主html,状态码是200

期望结果
1、打开一个支持协商缓存的h5
2、退出当前h5,然后重新进入,会发现有重新请求h5主html,状态码是304

@karosLi karosLi changed the title 在默认缓存策略下,重用后的webView会忽略304缓存,每次都会重新后去主html 在默认缓存策略下,重用后的webView会忽略304缓存,每次都会重新获取主html Nov 25, 2020
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