Skip to content

Instantly share code, notes, and snippets.

@rxnlabs
Last active April 13, 2017 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rxnlabs/10398708 to your computer and use it in GitHub Desktop.
Save rxnlabs/10398708 to your computer and use it in GitHub Desktop.
Send no cache headers using PHP (Great for staging)
<?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