Navigation Menu

Skip to content

Commit

Permalink
Fixed incorrectly formatted Expires header
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Giddy authored and Jonathan Giddy committed Nov 5, 2014
1 parent 8f8bb99 commit ced11fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyclone/web.py
Expand Up @@ -1719,7 +1719,7 @@ def get(self, path, include_body=True):
cache_time = self.get_cache_time(path, modified, mime_type)

if cache_time > 0:
self.set_header("Expires", "%s%s" % (datetime.datetime.utcnow(),
self.set_header("Expires", "%s" % (datetime.datetime.utcnow() +
datetime.timedelta(seconds=cache_time)))
self.set_header("Cache-Control", "max-age=%s" % str(cache_time))

Expand Down

0 comments on commit ced11fd

Please sign in to comment.