Problem regarding page caching
Hello everybody,
first of all, please be aware, that I read (and tried) nearly everything what google found concerning this topic, but I am still clueless.
I am currently using jquery 1.8.2 and jQM 1.2.0 (but had the same issue with 1.1.0.).
Here is the shortened, simplified code of my problem: http://jsfiddle.net/CkuMg/
I am developing a page which firstly generates a list, filled with data received from a webservice. This works so far as planned. Every item of the list should navigate to another page (#page2), where data from another Webservice-call is shown. This works also as planned for the first/initial opening of page2. But if you then navigate back (with jqm-back button or browser-back-button) to #page1 with the List and click on another item (withanother 'cookieKey'), unfortunatly exactly the same page (as with the first opening) with the same content is shown.
I think, it is some caching problem. I tried to disable caching in any way I could think (and google) of, but nothing helped so far.
- disabled caching with meta tags in the html page ("http-equiv="cache-control" content="max-age=0"" and so forth)
- disabled ajax caching (should not be the problem, because the ajax call for the 2nd page is not even triggered)
- removed page from dom (different tries, similar like this: https://forum.jquery.com/topic/here-is-a-way-to-turn-off-the-page-caching)
Do you have any ideas or advice?
If you have any questions or I did forget to provide any information, please let me know.
Best regards
olafthon