summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-07-04 08:21:13 -0400
committerDonald Stufft <donald@stufft.io>2013-07-04 08:21:13 -0400
commit1d431dd88c0e5a25794ff1814b42eab95a0962a7 (patch)
tree33002232276ae31795c23ac022e04f20087c7445
parente71a99339f05895ca75a5144673c2c0f0b93efa8 (diff)
downloaddecorator-1d431dd88c0e5a25794ff1814b42eab95a0962a7.tar.gz
Increase the cache time to a day
-rw-r--r--pypi.wsgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/pypi.wsgi b/pypi.wsgi
index 2969ee3..5e743c4 100644
--- a/pypi.wsgi
+++ b/pypi.wsgi
@@ -51,8 +51,8 @@ class CacheControlMiddleware(object):
def _start_response(status, headers, exc_info=None):
script = environ.get("SCRIPT_NAME", None)
if script in set(["/simple", "/serversig", "/packages"]):
- # Cache for 15 minutes
- headers += [("Cache-Control", "max-age=900, public")]
+ # Cache for a day
+ headers += [("Cache-Control", "max-age=86400, public")]
elif script in set(["/mirrors", "/security"]):
# Cache these for a week
headers += [("Cache-Control", "max-age=604800, public")]