[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Expires Header/Pragma No-Cache



At 23:32 2/7/97, Doug Williams wrote:
>Hi,
>
>I have a CGI in MacPerl that sends an HTML document to the users browser.
>I would like the HTTP header to prevent the file from being cached.  I was
>told that I should send the Pragma: no-cache and an Expires header with a
>date in the past.

print "Content-type: text/html\n";
print "Pragma: no-cache\n"; #This is for proxy systems only
print "Cache-control: no-cache\n"; #I think this is what you want
print "Expires: Mon, 06 May 1996 04:57:00 GMT\n";
print "\n"; #end header

I strongly recommend to everyone who does CGIs or anything mre than HTML to
get "Webmaster in a Nutshell" from ORA (http://www.ora.com/).  This is all
in the section on HTTP headers.

You might find the same info online; do a search for "HTTP near headers".

#================================================================
Chris Nandor                                      pudge@pobox.com
PGP Key 1024/B76E72AD                           http://pudge.net/
Keyfingerprint = 08 24 09 0B CE 73 CA 10  1F F7 7F 13 81 80 B6 B6