1

I have a php application that need not store the cache of the browser, as I can do this?

NikiC
  • 95,987
  • 31
  • 182
  • 219

1 Answers1

2

Write this on the top of your php code

<?php
header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );  // disable IE caching
header( "Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . " GMT" );
header( "Cache-Control: no-cache, must-revalidate" );
header( "Pragma: no-cache" );
?>