Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-oakes committed Dec 15, 2015
1 parent 8db2246 commit 341de74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions prismic/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def get_max_age(headers):
if expire_header is not None:
m = re.match("max-age=(\d+)", expire_header)
if m:
# The Prismic API is sending very high expeiery times (10 years) for articles, which
# makes it seem like it's using milliseconds rather than seconds. Some caching libraries
# (including AppEngine Memcache) sees this 10 year value as an error and refuses to
# store or retreive the cached value
# The Prismic API is sending very high expiry times (10 years) for articles, which
# makes it seem like it's using milliseconds rather than seconds. Some caching
# libraries (including AppEngine Memcache) sees this 10 year value as an error and
# refuses to store or retrieve the cached value
return int(m.group(1)) / 1000
return None

0 comments on commit 341de74

Please sign in to comment.