Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No Cache Please

Status
Not open for further replies.

Michael42

Programmer
Joined
Oct 8, 2001
Messages
1,454
Location
US
Hello,

What PHP 4 set of commands do you use to ensure a page is NOT cached and must be completely loaded fresh each time the page is accessed?

Thanks,

Michael42
 
You can use the header() command to set the cache pragma to no cache.

However, this is not a 100% solution, and there unfortunately is none.

IE on the Mac and Opera do not honor the cache pragma when the page is accessed using the back button of the browser. The no-cache directive is only honored by these browsers when the page is accessed through a link.

All other browsers - to the best of my knowledge - honor the directive even when using the back button.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top