mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-13 15:19:03 +00:00
changed cache control from 1 hr to 5 mins
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user