RSS: add a simple one-hour Cache-Control

die-sync-es-backport
TheAMM 6 years ago
parent 99b59e57f5
commit dcad0572c5

@ -306,6 +306,8 @@ def render_rss(label, query, use_elastic):
torrent_query=query)
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)
return response

Loading…
Cancel
Save