google app engine - unable to set cache expiration on in app.yaml for a python app -
in gae app serving static content follows (those entries in app.yaml file):
handlers: - url: /css static_dir: static/css expiration: "10m" - url: /js static_dir: static/js expiration: "10m"
despite information available here: https://developers.google.com/appengine/docs/python/config/appconfig#expiration content never cached in browser regardless whether use dev server or upload app.
i using chrome , request header is:
cache-control:max-age=0
and response headers are:
cache-control:no-cache, must-revalidate pragma:no-cache server:google frontend status:304 not modified
as per answers able find, tested both being logged in , out google admin account , nothing changes.
any on appreciated. many thanks!
response headers when logged out of admin account:
date:fri, 25 apr 2014 09:54:44 gmt etag:"lhoiow" server:google frontend status:304 not modified version:http/1.1
gae should work fine 10m
value. because signed in google admin account. gae returns no-cache
such accounts. trying opening same page in incognito returns proper cache expiry times.
by default gae sets cache 10 minutes, if didn't set expiry - should see 10 minutes instead of no-cache.
Comments
Post a Comment