I have a php application that need not store the cache of the browser, as I can do this?
Asked
Active
Viewed 253 times
1 Answers
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" );
?>

user3708523
- 36
- 2