[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/publisher/browser/fileresource.py also set cache control if we have a 304

Christian Theune ct at gocept.com
Fri Nov 24 03:19:18 EST 2006


Checkin police: Tests?

Bernd Dorn wrote:
> Log message for revision 71286:
>   also set cache control if we have a 304
> 
> Changed:
>   U   Zope3/trunk/src/zope/app/publisher/browser/fileresource.py
> 
> -=-
> Modified: Zope3/trunk/src/zope/app/publisher/browser/fileresource.py
> ===================================================================
> --- Zope3/trunk/src/zope/app/publisher/browser/fileresource.py	2006-11-23 21:11:21 UTC (rev 71285)
> +++ Zope3/trunk/src/zope/app/publisher/browser/fileresource.py	2006-11-23 22:20:16 UTC (rev 71286)
> @@ -62,6 +62,8 @@
>          request = self.request
>          response = request.response
>  
> +        setCacheControl(response)
> +
>          # HTTP If-Modified-Since header handling. This is duplicated
>          # from OFS.Image.Image - it really should be consolidated
>          # somewhere...
> @@ -88,7 +90,6 @@
>          response.setHeader('Content-Type', file.content_type)
>          response.setHeader('Last-Modified', file.lmh)
>  
> -        setCacheControl(response)
>          f = open(file.path,'rb')
>          data = f.read()
>          f.close()
> 
> _______________________________________________
> Zope3-Checkins mailing list
> Zope3-Checkins at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-checkins

-- 
gocept gmbh & co. kg - forsterstraße 29 - 06112 halle/saale - germany
www.gocept.com - ct at gocept.com - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://mail.zope.org/pipermail/zope3-checkins/attachments/20061124/177344d3/signature.bin


More information about the Zope3-Checkins mailing list