> > How do I ensure that my application pages are loading a fresh copy?
 > If I can make that happen then presumably it will prevent this issue.
 >
 > The strange thing is that this doesn't seem to happen for another
 > application I built but I haven't been able to find a difference in
 > the code I wrote.  (Am testing both in the same browser.)
 >
 > Thanks,
 >
 > > -Aaron

Aaron:

I use this:

<?php # nocache.php
// this script prevents all caching

// expires on any past date
header ("Expires: Mon, 26 Jul 1997 05:00: GMT");

// last modified at current date and time
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");

// for HTTP 1.1:
header ("Cache-Control: no-store, no-cache, must-revalidate");
header ("Cache-Control: post-check=0, pre-check=0", false);

// for HTTP 1.0
header ("Pragma: no-cache");
?>

Anyone see any problems with it?

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to