back button behavior and mobile browsers

back button behavior and mobile browsers

Hi,

I'm trying to implement a simple back button with jqm and I can't quite get there. I'm not sure if it is a jqm issue or a mobile browser issue. I'm not using external or data-ajax=false, so I'm using the default Ajax linking. I implemented a basic back button using data-rel='back'. Unfortunately when I click back, instead of using the cached version of the previous page, Safari (iOS 5+) tries to recreate the previous page. I thought mobile browsers should do a lot of caching, but it seems to me there is no caching done whatsoever. It wasn't just my iPhone. I tried it on an Android, and same thing. So, if mobile browsers don't do caching, then what's the point of jqm's back functionality?

Btw, I realized that I need to describe my setup in detail:
1. User is on Home page and clicks Search.
2. A POST action takes the user to the results page where there are links to result items.
3. User clicks a result item link (a GET action) which opens an item details page.
4. User clicks 'back' button from the details page to the results page. Instead of seeing the results page, the browser tries to do a GET on the results page - which is not correct. The results page is dynamically generated by POSTing something to it (from the Home page).

God... that's so much detail. I know it is a lot to read, but I don't know how to describe it any simpler.

Thanks so much,
Jenna