I’m choosing whether to enable cache header and what difference it will make.
The current code is this and I wonder whether I should enable the caching and what it will do?
#seconds_valid = 8600
#self.response.headers['Cache-Control'] = "public, max-age=%d" % seconds_valid
self.response.headers['Cache-Control'] = 'no-cache'
Can I test what the difference is if I change the code to this
seconds_valid = 8600
self.response.headers['Cache-Control'] = "public, max-age=%d" % seconds_valid
Am I doing it the right way? What exactly is going to happen when I enable the cache? Will I still be able to update the page?
Thank you
There is also AppEngine’s caching reverse proxy / edge cache which may pick up your
Cache-Controlheader if given amax-ageand set topubliclike in your example. The edge cache is “best effort”, meaning it is not 100% certain it will cache your response.More information can be found here and here.