Posted By

Jotape on 09/29/11


Tagged

php cache


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

gecube


Cache PHP


 / Published in: PHP
 

  1. header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
  2. header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
  3. header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
  4. header("Cache-Control: post-check=0, pre-check=0", false);
  5. header("Pragma: no-cache"); // HTTP/1.0

Report this snippet  

You need to login to post a comment.