Bluehost.com Web Hosting $6.95

How initiate update for proxy server?

This is a discussion on How initiate update for proxy server? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I manage a home page, the purpose of wich is to keep available certain information, wich may change. Some of ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-31-2005
Erik Kullberg
 
Posts: n/a
Default How initiate update for proxy server?

I manage a home page, the purpose of wich is to keep available certain
information, wich may change. Some of the readers are sitting behind a proxy
server. Sometimes they do not observe that I have updated the information
until it's too late, since their proxy server does not update frequently
enough.

Can I influence this via my php code?

/ Erik Kullberg


Reply With Quote
  #2 (permalink)  
Old 06-01-2005
Colin McKinnon
 
Posts: n/a
Default Re: How initiate update for proxy server?

Erik Kullberg wrote:

> I manage a home page, the purpose of wich is to keep available certain
> information, wich may change. Some of the readers are sitting behind a
> proxy server. Sometimes they do not observe that I have updated the
> information until it's too late, since their proxy server does not update
> frequently enough.
>
> Can I influence this via my php code?
>


Yes, but bear in mind that not all proxies/browsers conform to the rules.

Negatiated content should always be refreshed, so simply adding a GET
parameter to the end of every href may fix the problem (you could try doing
something clever by creating a session and setting session.use_trans_sid).
Alternatively you could try to ask the proxy/browser to NOT cache the
object:

header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
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");/* HTTP/1.1 */

(copy and pasted from a suggestion by Ron Holland)

HTH

C.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:27 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0