From a2ca6eb2ac13752f33b0a464c2fcc428c57a1e8c Mon Sep 17 00:00:00 2001 From: aldacron Date: Wed, 17 May 2017 01:05:55 -0700 Subject: [PATCH] changed cache control from 1 hr to 5 mins --- nyaa/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyaa/routes.py b/nyaa/routes.py index b34c356..4b9659f 100644 --- a/nyaa/routes.py +++ b/nyaa/routes.py @@ -309,7 +309,7 @@ def render_rss(label, query, use_elastic): response = flask.make_response(rss_xml) response.headers['Content-Type'] = 'application/xml' # Cache for an hour - response.headers['Cache-Control'] = 'max-age={}'.format(1*60*60) + response.headers['Cache-Control'] = 'max-age={}'.format(1*5*60) return response