How to make Android Web ViewUrl application loading NOT cacheable when content has expired?

I am confused with the loadUrl()default behavior of the method in the Android web view (Chrome 30). It never checks the source if it is cached! Basically, I have to call reload()to check if the content is being updated on the server. This is fundamentally different from the Chrome browser (or any other browser that I know of).

Why is this so? How can I do loadUrlactually transfer the timestamp comparison to the server to see if the cached data has expired?

I checked the cache mode and it is -1 ( WebSettings.LOAD_DEFAULT). From the documentation, the behavior should be as I expected, but this is clearly not the case:

The default cache usage mode. If the type of navigation does not impose any specific behavior, use cached resources when available and have not expired

+4
source share

All Articles