diff options
author | Donald Stufft <donald@stufft.io> | 2013-07-04 08:21:13 -0400 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2013-07-04 08:21:13 -0400 |
commit | 1d431dd88c0e5a25794ff1814b42eab95a0962a7 (patch) | |
tree | 33002232276ae31795c23ac022e04f20087c7445 | |
parent | e71a99339f05895ca75a5144673c2c0f0b93efa8 (diff) | |
download | decorator-1d431dd88c0e5a25794ff1814b42eab95a0962a7.tar.gz |
Increase the cache time to a day
-rw-r--r-- | pypi.wsgi | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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")] |