mirror of
https://github.com/ProjectSynthoria/SynthoriaArchive.git
synced 2025-03-12 15:26:56 +02:00
RSS: add a simple one-hour Cache-Control
This commit is contained in:
parent
99b59e57f5
commit
dcad0572c5
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue