also cache on cdn

This commit is contained in:
Cyberes 2024-09-03 17:30:02 -06:00
parent 7d55cde97b
commit 63d642ef50
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ def serve_global_map():
response = make_response(send_file(buf, mimetype='image/png')) response = make_response(send_file(buf, mimetype='image/png'))
expires = datetime.datetime.now() expires = datetime.datetime.now()
expires = expires + datetime.timedelta(minutes=10) expires = expires + datetime.timedelta(minutes=10)
response.headers['Cache-Control'] = 'public' response.headers['Cache-Control'] = 'public, max-age=600'
response.headers['Expires'] = expires.strftime("%a, %d %b %Y %H:%M:%S GMT") response.headers['Expires'] = expires.strftime("%a, %d %b %Y %H:%M:%S GMT")
return response return response