Skip to content

Commit

Permalink
Fix cache control for geoip response
Browse files Browse the repository at this point in the history
Storing this in public caches is not actually safe.
  • Loading branch information
sfan5 committed Sep 20, 2022
1 parent b0fed2e commit 218f8d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def geoip():
"continent": continent, # null on error
})
resp.cache_control.max_age = 7 * 86400
resp.cache_control.public = True
resp.cache_control.private = True

return resp

Expand Down

0 comments on commit 218f8d9

Please sign in to comment.