How to invalidate cashed URL response from GAE “server: Google Frontend”

47 views
Skip to first unread message

Aditya Tiwari

unread,
Apr 4, 2018, 3:08:14 PM4/4/18
to Google App Engine

My website is hosted on Google App Engine using Standard Python.


In request handlers, I am setting HTTP header "cache-control: max-age=3600, public"


So frontend server "Google Frontend" caches the response for 1hr(which I want to save cost).


In rare cases the content of page changes and I want the content in frontend cache to be invalidated. 


How can I do that? Is there any API for it?


I can't alter the URL as they have 90% traffic from Google Search.

Kenworth (Google Cloud Platform)

unread,
Apr 4, 2018, 6:47:10 PM4/4/18
to google-a...@googlegroups.com
Thank you for posting this issue. It seems you also posted this rightfully so on StackOverflow (which we also monitor) and already getting the right responses from the community.  Anyone having similar issues should post their comments/answers on that thread and add their voice.

Attila-Mihaly Balazs

unread,
Apr 5, 2018, 4:39:35 AM4/5/18
to Google App Engine
AFAIK you can't. But remember - by putting those header there you allow anyone - including your client's browsers to cache that page for one hour. So even if you could purge / update the google frontend cache, the clients wouldn't see the update anyway if they have it in their cache (unless they do a "hard refresh" - but many people don't know about that).

Attila
Reply all
Reply to author
Forward
0 new messages