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,
|
||||
attachment_filename=png_filename,
|
||||
mimetype='image/png'))
|
||||
response.update({
|
||||
'Cache-Control': 'no-cache, no-store, must-revalidate',
|
||||
'Pragma': 'no-cache',
|
||||
'Expires': '0',
|
||||
})
|
||||
for key, value in {
|
||||
'Cache-Control': 'no-cache, no-store, must-revalidate',
|
||||
'Pragma': 'no-cache',
|
||||
'Expires': '0',
|
||||
}.items():
|
||||
response.headers[key] = value
|
||||
|
||||
# Trying to disable github caching
|
||||
return response
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue