set max-age to 30s in hope that is helps chrome to send an if-modified-since

This commit is contained in:
Laura Klünder 2016-12-22 11:44:33 +01:00
parent edf066c68a
commit c3d8098e0e

View file

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