From 1d431dd88c0e5a25794ff1814b42eab95a0962a7 Mon Sep 17 00:00:00 2001 From: Donald Stufft Date: Thu, 4 Jul 2013 08:21:13 -0400 Subject: Increase the cache time to a day --- pypi.wsgi | 4 ++-- 1 file 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")] -- cgit v1.2.1