help about no-cache in IE

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

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

help about 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.
ldomingues
Forum Commoner
Posts: 41
Joined: Fri Aug 06, 2004 1:15 pm
Location: Portugal

Post by ldomingues »

Try adding:

Cache-Control: private
Connection: close
Post Reply