set max-age to 30s in hope that is helps chrome to send an if-modified-since
This commit is contained in:
parent
edf066c68a
commit
c3d8098e0e
1 changed files with 1 additions and 2 deletions
|
@ -259,6 +259,5 @@ def map_image(request, area, level):
|
|||
|
||||
last_modified = http_date(timegm(last_update.utctimetuple()))
|
||||
response['Last-Modifed'] = last_modified
|
||||
response['Expires'] = last_modified
|
||||
response['Cache-Control'] = 'max-age=0, must-revalidate'
|
||||
response['Cache-Control'] = 'max-age=30, must-revalidate'
|
||||
return response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue