Rob Dixon wrote: > Hi all. > > I'm in the process of modifying an existing CGI script. There is a > page of HTML which has an anchor to the script which, when run, > modifies the HTML file which linked to it and redisplays it. At > present this is done by returning just the header line > > Location: http://www.domain.com/referrer.htm > > to the client after modifying the file. > > Firstly, I'm not at all sure if this is the preferred way to force a > refresh, and secondly it doesn't always work as the client browser > believes it has a valid cached copy of the page and refuses to reload > it. > > Can someone help me towards a better solution?
To prevent the client from using its cached copy, you'll need to have the server send an Expires header with the .html page. This can be accomplished by adding <meta http-equiv="Expires" content="0"> in the <head> section of the .html file. (RFC 2616 specifies that clients must treat an expires value of "0" as "already expired".) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]