Skip to content

Commit

Permalink
Merge pull request #156 from jongiddy/fix-expires
Browse files Browse the repository at this point in the history
Fixed incorrectly formatted Expires header
  • Loading branch information
fiorix committed Nov 5, 2014
2 parents 8f8bb99 + ced11fd commit b8d3f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyclone/web.py
Original file line number Diff line number Diff line change
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 b8d3f1c

Please sign in to comment.