response.headers fixes
This commit is contained in:
parent
597785e43f
commit
4e40a23b83
1 changed files with 6 additions and 5 deletions
|
|
@ -190,11 +190,12 @@ def wttr(location, request):
|
||||||
response = make_response(send_file(cached_png_file,
|
response = make_response(send_file(cached_png_file,
|
||||||
attachment_filename=png_filename,
|
attachment_filename=png_filename,
|
||||||
mimetype='image/png'))
|
mimetype='image/png'))
|
||||||
response.update({
|
for key, value in {
|
||||||
'Cache-Control': 'no-cache, no-store, must-revalidate',
|
'Cache-Control': 'no-cache, no-store, must-revalidate',
|
||||||
'Pragma': 'no-cache',
|
'Pragma': 'no-cache',
|
||||||
'Expires': '0',
|
'Expires': '0',
|
||||||
})
|
}.items():
|
||||||
|
response.headers[key] = value
|
||||||
|
|
||||||
# Trying to disable github caching
|
# Trying to disable github caching
|
||||||
return response
|
return response
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue