Forum Moderators: open
thanks alot for any help
Using Cache-Control headers
The first way, and the one we generally recommend, is to add the Cache-Control header mentioned above. The general format is:
Cache-Control: max-age=num_seconds
where num_seconds is the amount of time in seconds you want the page to last before it expires.
<?php
header("Cache-Control: must-revalidate");
?> The headers must be set before any content, otherwise they will trigger an error.