HTML no-cache in IE

JavaScript and client side scripting.

Moderator: General Moderators

Locked
Cesar
Forum Commoner
Posts: 31
Joined: Sat May 22, 2004 1:35 am

HTML no-cache in IE

Post by Cesar »

Help me please.
I have a web page, and i like when my page is loading it well be loaded from server and not from cache.
I write to header

Code: Select all

<?php
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");    // Date in the past
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header ("Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0, max-age=0, s-maxage=0");  // HTTP/1.1
header ("Pragma: no-cache");                          // HTTP/1.0

?>
and if i push "back" button in IE page loaded from cache.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

NO CROSS POSTING.
Locked