Skip to content

Commit

Permalink
Applied patch #2142
Browse files Browse the repository at this point in the history
  • Loading branch information
zopyx committed Apr 10, 2001
1 parent 29791a3 commit 4b020f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AcceleratedHTTPCacheManager.py
Expand Up @@ -98,7 +98,7 @@
import urlparse, httplib
from urllib import quote
from string import lower, join, split

from App.Common import rfc1123_date

def http_date(value, format='%a, %d %b %Y %H:%M:%S GMT'):
return time.strftime(format, time.gmtime(value))
Expand Down Expand Up @@ -173,8 +173,8 @@ def ZCache_set(self, ob, data, view_name, keywords, mtime_func):
return
# Set HTTP Expires and Cache-Control headers
seconds=self.interval
expires=http_date(time.time() + seconds)
# RESPONSE.setHeader('Last-Modified', http_date(time.time()))
expires=rfc1123_date(time.time() + seconds)
# RESPONSE.setHeader('Last-Modified',rfc1123_date(time.time()))
RESPONSE.setHeader('Cache-Control', 'max-age=%d' % seconds)
RESPONSE.setHeader('Expires', expires)

Expand Down

0 comments on commit 4b020f5

Please sign in to comment.