Post Reply  Post Thread 
php webpage caching
alias
Junior Member
**

Posts: 25
Group: Registered
Joined: Jun 2006
Status: Offline
Reputation: 0
Post: #1
php webpage caching

Hi,


I have one website and its main page is dynamic this i made in PHP, Now when i updating its content it is not displaying. We are accessing this website throuhg big proxy. this proxy server caching old pages, Please let me know how can i solve this issue.

Thanks
Alias

08-23-2006 09:04 AM
Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 214
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 0
Post: #2
RE: php webpage caching

You can add no-cache headers to your php pages, as in the following example:

PHP Code:
                @header("Cache-Control: no-cache, must-revalidate, max-age=0");
                @
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
                @
header("Pragma: no-cache"); 

08-23-2006 03:58 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: