[Checkins] 
	SVN: Zope3/branches/3.2/src/zope/app/publisher/browser/fileresource.py
	also set cache control if we have a 304
    Bernd Dorn 
    bernd.dorn at lovelysystems.com
       
    Thu Nov 23 17:23:05 EST 2006
    
    
  
Log message for revision 71288:
  also set cache control if we have a 304
Changed:
  U   Zope3/branches/3.2/src/zope/app/publisher/browser/fileresource.py
-=-
Modified: Zope3/branches/3.2/src/zope/app/publisher/browser/fileresource.py
===================================================================
--- Zope3/branches/3.2/src/zope/app/publisher/browser/fileresource.py	2006-11-23 22:22:07 UTC (rev 71287)
+++ Zope3/branches/3.2/src/zope/app/publisher/browser/fileresource.py	2006-11-23 22:23:05 UTC (rev 71288)
@@ -66,6 +66,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...
@@ -92,7 +94,7 @@
         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()
    
    
More information about the Checkins
mailing list