Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开发了一个在 Android 和 iOS 上运行的 Web 应用程序。webview 是否以某种方式缓存页面?我正在对服务器上的 html 进行更改,但它随机更改,并不总是更改。这是正确的行为吗?我认为它应该查看 HTTP 标头并看到它已被修改。
iOS 上的 UIWebView 肯定会发生缓存。当我遇到问题时,我无法找到任何合理的解决方案(标题等)。我们最终在服务器端重命名文件,以诱骗它解除缓存。