Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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



Report this thread to moderator Post Follow-up to this message
Old Post
Erik Kullberg
05-31-05 08:57 PM


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.

Report this thread to moderator Post Follow-up to this message
Old Post
Colin McKinnon
06-01-05 01:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:33 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.