mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 14:49:59 +00:00
changed cache control from 1 hr to 5 mins
This commit is contained in:
parent
2590dfcc95
commit
a2ca6eb2ac
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue