[ZCM] [ZC] 683/ 2 Resolve "Image responses with a 304 "Not Modified" status value don't have cache headers"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin@zope.org
Tue, 17 Jun 2003 14:01:51 -0400


Issue #683 Update (Resolve) "Image responses with a 304 "Not Modified" status value don't have cache headers"
 Status Resolved, Zope/bug+solution low
To followup, visit:
  http://collector.zope.org/Zope/683

==============================================================
= Resolve - Entry #2 by Brian on Jun 17, 2003 2:01 pm

 Status: Pending => Resolved

Thanks - fixed for 2.6.2 / 2.7
________________________________________
= Request - Entry #1 by bcroq on Nov 20, 2002 12:04 pm


Uploaded:  "Zope.image-304-cache.patch"
 - http://collector.zope.org/Zope/683/Zope.image-304-cache.patch/view
When an Image receives a request with a "If-Modified-Since" header that lead to a 304 "Not Modified" response, the cache management is forgotten.

This means that even if an Image object is associated to an Accelerated HTTP Cache, the "Not Modified" responses don't get the "Cache-Control" and "Expires" headers that make the navigator stop asking for this image for a while.

To fix this problem, I have tried to insert a call to self.ZCacheable_set(None) just before setting the 304 response status, and it works...
==============================================================