Posted By

mfigge on 02/18/11


Tagged

http browser cache


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

wirenaught


Disable browser cache


 / Published in: PHP
 

  1. header("Expires: Tue, 03 Jul 2001 06:00:00 GMT");
  2. header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
  3. header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
  4. header("Cache-Control: post-check=0, pre-check=0", false);
  5. header("Pragma: no-cache");

Report this snippet  

You need to login to post a comment.