summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-06-24 11:03:30 -0400
committerDonald Stufft <donald@stufft.io>2013-06-24 11:03:30 -0400
commit8d9a1fb5bb84180416e095c6f33022a525117760 (patch)
treeb85683d7a4831f07820a2fe0b8c669f98019d01f
parent5e3c1e6fb41ac00fa4f74ff2c5950f72277d667c (diff)
downloaddecorator-8d9a1fb5bb84180416e095c6f33022a525117760.tar.gz
Only cache pages for 15 minutes
-rw-r--r--pypi.wsgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/pypi.wsgi b/pypi.wsgi
index e40056f..ed74d43 100644
--- a/pypi.wsgi
+++ b/pypi.wsgi
@@ -51,7 +51,7 @@ class CacheControlMiddleware(object):
def _start_response(status, headers, exc_info=None):
script = environ.get("SCRIPT_NAME", None)
if script in set(["/simple", "/serversig", "/packages"]):
- headers += [("Cache-Control", "max-age=86400, public")]
+ headers += [("Cache-Control", "max-age=900, public")]
else:
headers += [("Cache-Control", "private")]