I have a php file called pages.php that returns a page specified by a query parameter. The user selects a number from a dropdown and then an ajax request is sent to pages.php with that number like:
pages.php?page=1
The number of pages is dynamic. I am using HTML5's AppCache to cache the index page, but how do I get the browser to cache the the ajax requests. Adding pages.php to the manifest file just caches the response that has no page. But it does cache any requests with a page number. I want to do something like this in the manifest file:
CACHE:
pages.php?page=*
I am trying to get it so that the user can access pages they have viewed previously if they go offline. AppCache doesn't seem suited to making websites offline capable (only making static resources load quicker), is there some other feature I should be using?