Last active
April 13, 2017 08:59
-
-
Save rxnlabs/10398708 to your computer and use it in GitHub Desktop.
Send no cache headers using PHP (Great for staging)
This file contains hidden or 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-store, no-cache, must-revalidate, max-age=0"); | |
header("Cache-Control: post-check=0, pre-check=0", false); | |
header("Pragma: no-cache"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment