I realize that you can’t 100% know that this will work in all browsers. All I care about is IE 8, Chrome, and Firefox. I need some base headers that I can put at the top of my PHP pages to allow the Forward/Back buttons to load the cache.
Update: on every page I have a logged in user box at the top of the page which gives the user access to their account.
I’m looking for a performance increase in the web site. The user having to reload the site when clicking back/forward creates unnecessary the server load.
Edit: After extensive research into caching and my level of knowledge I do not know a good solution. It also appears that most others don’t know either.
What you want is jumping back in the page cache. There are various variables that determine if a page is put into the page cache.
Surfin’ Safari has recently written a blog about the page cache. In short a page isn’t put into it if:
Those are the rules Webkit follows, I don’t know if it’s documented for the other browsers. You can never be sure that a page is put into the page cache. It’s best to design websites that don’t relay on behavior that can change without notice.