Commit 61bb12a3 authored by Andreas Jung's avatar Andreas Jung

     - Collector #1345: AcceleratedHTTPCacheManager now sends the
       Last-Modified header.
parent b9c135c2
......@@ -118,6 +118,9 @@ Zope Changes
Bugs fixed
- Collector #1345: AcceleratedHTTPCacheManager now sends the
Last-Modified header.
- Collector #1126: ZPublisher.Converters.field2lines now using
splitlines() instead of split('\n').
......
......@@ -99,7 +99,7 @@ class AcceleratedHTTPCache (Cache):
# Set HTTP Expires and Cache-Control headers
seconds=self.interval
expires=rfc1123_date(time.time() + seconds)
# RESPONSE.setHeader('Last-Modified',rfc1123_date(time.time()))
RESPONSE.setHeader('Last-Modified',rfc1123_date(time.time()))
RESPONSE.setHeader('Cache-Control', 'max-age=%d' % seconds)
RESPONSE.setHeader('Expires', expires)
......
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