Return to Snippet

Revision: 57831
at June 11, 2012 22:38 by ryantxr


Initial Code
header("Content-Type: application/json");
      header("Expires: 0");
      header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
      header("Cache-Control: no-store, no-cache, must-revalidate");
      header("Cache-Control: post-check=0, pre-check=0", false);
      header("Pragma: no-cache");

Initial URL

                                

Initial Description
HTTP headers to disable caching.

Initial Title
No Cache HTTP Headers

Initial Tags
http, php, header, cache

Initial Language
PHP