Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14655 reviews 1734 hosting providers

Questions & Answers

Preventing my browser from going back to previous page

Aug 11, 2012 by Maria
How to make sure that a specific page refreshes completely when using the back button? It looks like the page is cached and every time anyone uses the back button the page loaded is the cached version and therefore the variables are not reset, how can I prevent this? Please help

2 Answers

0 votes
Aug 11, 2012 by expert
A good way of cashing would be to put this code into your theme's header.php, right on top of everything else.
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 2000 05:00:00 GMT"); // A past date
0 votes
Aug 11, 2012 by WebProX
To reload the page at a set of tervals add this code to the head