Prevent Web Page from Expiring


/ Published in: PHP
Save to your folder(s)

I use the following code to prevent a user from getting a "webpage expired" message when hitting the back button on a page where the search results are also on the page with the form.


Copy this code and paste it in your HTML
  1. <?
  2. header("Cache-Control: public");
  3. ?>

Report this snippet


Comments


You need to login to view comments.