Swiki: no-cache and <pre>

Randal L. Schwartz merlyn at stonehenge.com
Fri Mar 3 15:41:06 UTC 2000


>>>>> "Bert" == Bert Freudenberg <bert at isgnw.CS.Uni-Magdeburg.De> writes:

Bert> Actually, there was a discussion about a year ago. Since then, the swiki
Bert> sends pages with these three header lines:
Bert> 	Expires: 0
Bert> 	Pragma: no-cache
Bert> 	Cache-Control: no cache

I'd remove "Pragma: no-cache".  It's just voodoo programing, and has
no effect except to perpetuate the myth that it *does* something.  And
the parameter of "Expires:" I believe has to be an actual date/time,
not just a 0.  And, to hit 3-for-3 here, I dunno if it's a typo, but
you need "no-cache" on that "Cache-control". :)

Bert> In PWSSwiki this was only done for "edit" requests, because it is fatal
Bert> if you edit an old version. In ComSwiki, these three lines are always
Bert> sent. Hopefully, the next ComSwiki version will support a real
Bert> "Last-modified" header as well as the "HEAD" method.


-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!





More information about the Squeak-dev mailing list