[GeneralDiscussion] Re: zope/plone article
[email protected] (Niall Douglas) Fri, 06 Mar 2009 16:47:33 -0800
| Newsgroups | gmane.comp.web.zope.zwiki |
|---|---|
| Message-ID | <49B1C412.8958.BC8736D__34549.0999556661$1236386953$gmane$org@s_sourceforge.nedprod.com> |
On 6 Mar 2009 at 11:28, betabug wrote:
> > ... simply do:
> >
> > RESPONSE.setHeader('Last-Modified', rfc1123_date(last_mod))
> > RESPONSE.setHeader('Cache-Control', 'max-age=86400, s-
>
> Sorry, that is just not the proper way to do these things. For setting
> the Cache-Control header you use an "Accelerated HTTP Cache Manager"
> object. Hardcoding something like that in the code is not good style.
Umm, the Last-Modified (conditional get) feature is ALREADY
hardcoded. Adding Cache-Control is a bug fix i.e. making it work as
it was thought Last-Modified should work.
IMHO adding Accelerated HTTP Cache Manager support is a feature
request and a totally separate issue.
Cheers,
Niall
--
forwarded from http://zwiki.org/GeneralDiscussion#msg49B1C412.8958.BC8736D@s_sourceforge.nedprod.com