Posted By

wireplay on 09/03/10


Tagged

php headers cache


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

fwd
kairog
wirenaught
fadlee


PHP - Cache Controls


 / Published in: PHP
 

  1. <?php
  2. header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
  3. header('Cache-Control: no-store, no-cache, must-revalidate');
  4. header('Cache-Control: post-check=0, pre-check=0', false);
  5. header('Pragma: no-cache');
  6. ?>

Report this snippet  

You need to login to post a comment.