PHP - Cache Controls

/ Published in: PHP
Save to your folder(s)

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.