|
|
@ -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
|
|
|
|