Prevent Browser Caching of Dynamic Content


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



Copy this code and paste it in your HTML
  1. <?PHP
  2. header("Expires: Sat, 1 Jan 2005 00:00:00 GMT");
  3. header("Last-Modified: ".gmdate( "D, d M Y H:i:s")."GMT");
  4. header("Cache-Control: no-cache, no-store, must-revalidate");
  5. header("Pragma: no-cache");
  6. ?>

URL: http://www.webreference.com/programming/javascript/rg33/2.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.