Android webview can not cache the results caused by AJAX cal

In my android app, I am using a webview to load a web page A. In the page A, there are some buttons, which will trigger some Ajax call. Each ajax call will cause the A’s dom changed.Assuming the A’s initial status is A0, after a ajax call triggered, A’s status will be A1, Then you …

via Android Application Development » Search Results » ajax:

Android webview can not cache the results caused by AJAX cal

In my android app, I am using a webview to load a web page A. In the page A, there are some buttons, which will trigger some Ajax call. Each ajax call will cause the A’s dom changed.
Assuming the A’s initial status is A0, after a ajax call triggered, A’s status will be A1, Then you can click page B’s link on the page A with the status A1.
Now you are coming to the Page B from A.
Then if you are back to A from B, then you will see A with status A0 instead of A1.
My webview cache mode setting is LOAD_NORMAL. The cache-control field in the response header for Page A is private.
Can someone explian why I can not see page A with status A1 when I am back from page B. Many Thanks.

For more info: Android webview can not cache the results caused by AJAX cal

Android Application Development » Search Results » ajax

Android webview can not cache the results caused by AJAX cal

Share this post:

Related Posts

Leave a Comment