1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-06-11 06:48:29 +00:00

changed cache control from 1 hr to 5 mins

This commit is contained in:
aldacron 2017-05-17 01:05:55 -07:00
parent 2590dfcc95
commit a2ca6eb2ac

View file

@ -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