Created
August 15, 2013 13:29
-
-
Save mattbanks/6240814 to your computer and use it in GitHub Desktop.
PHP no caching expires headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 | |
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment