Disable browser cache

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

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


RSS Icon Subscribe to comments

You need to login to post a comment.