pepebe
5/24/2012 - 1:06 PM

PHP: Prevent Browser cache PHP

PHP: Prevent Browser cache PHP

Wednesday, February 8, 2012
source: https://plus.google.com/114671179226773814427/posts
posted by: Jailani M - https://plus.google.com/114671179226773814427/posts

header( "Last-Modified: " . gmdate( "D, j M Y H:i:s" ) . " GMT" );
header( "Expires: " . gmdate( "D, j M Y H:i:s", time() ) . " GMT" );
header( "Cache-Control: no-store, no-cache, must-revalidate" ); // HTTP/1.1
header( "Cache-Control: post-check=0, pre-check=0", FALSE );
header( "Pragma: no-cache" ); // HTTP/1.0