Commit ff35700b authored by Brian Lloyd's avatar Brian Lloyd

fix for 683

parent c89b794c
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""Image object""" """Image object"""
__version__='$Revision: 1.144 $'[11:-2] __version__='$Revision: 1.145 $'[11:-2]
import Globals, struct import Globals, struct
from OFS.content_types import guess_content_type from OFS.content_types import guess_content_type
...@@ -160,6 +160,7 @@ class File(Persistent, Implicit, PropertyManager, ...@@ -160,6 +160,7 @@ class File(Persistent, Implicit, PropertyManager,
RESPONSE.setHeader('Content-Length', self.size) RESPONSE.setHeader('Content-Length', self.size)
RESPONSE.setHeader('Accept-Ranges', 'bytes') RESPONSE.setHeader('Accept-Ranges', 'bytes')
RESPONSE.setStatus(304) RESPONSE.setStatus(304)
self.ZCacheable_set(None)
return '' return ''
if self.precondition and hasattr(self,self.precondition): if self.precondition and hasattr(self,self.precondition):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment