Fix cache control for geoip response
Storing this in public caches is not actually safe.
This commit is contained in:
@@ -66,7 +66,7 @@ def geoip():
|
|||||||
"continent": continent, # null on error
|
"continent": continent, # null on error
|
||||||
})
|
})
|
||||||
resp.cache_control.max_age = 7 * 86400
|
resp.cache_control.max_age = 7 * 86400
|
||||||
resp.cache_control.public = True
|
resp.cache_control.private = True
|
||||||
|
|
||||||
return resp
|
return resp
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user