google app engine edge cache not work for app domains anymore?

157 views
Skip to first unread message

Lucemia

unread,
Jul 16, 2015, 12:53:43 PM7/16/15
to google-a...@googlegroups.com
By my experiment in these days, it looks like google appengine edge cache not work for custom domain (app domain) recently ( or change its rules).  However, for *.appspot.com, the edge cache worked as before. 

Any one has the same issues? Is it a rule changes / temp bugs ?

Jeff Deskins

unread,
Jul 16, 2015, 9:41:13 PM7/16/15
to google-a...@googlegroups.com
After researching this for the original poster on stackoverflow, I am seeing the same thing with my own custom domains.

When hitting a route that has public caching setup - the edge cache doesn't work when hitting that url from the custom domain.  It always returns 200 status in app engine logs.  However, hitting that same app engine app via APP_ID.appspot.com domain - it starts taking advantage of the edge cache almost immediately.  In that case it returns 204 status as expected.

Sample snippet to get these pages to publicly cache is:

response.headers['Pragma'] = 'Public'
response.headers['Cache-Control'] = 'public, max-age=%d'%time

The edge cache used to work when routing through a domain but doesn't seem to any more.

Jeff

Jeff Deskins

unread,
Jul 20, 2015, 11:12:37 AM7/20/15
to google-a...@googlegroups.com
Just to update...  

Edge cache now appears to be working when calling app engine app from either custom domain or APP_ID.appspot.com.  I see 204 response code in the logs now for both. Didn't change any code.

Thanks,
Jeff

Patrice (Cloud Platform Support)

unread,
Jul 20, 2015, 12:39:00 PM7/20/15
to google-a...@googlegroups.com, jeff.d...@gmail.com
Hi Jeff,

Happy that it got fixed and you can see the results :). 

Lucemia, can you confirm if on your end this has been fixed as well?

Cheers!

Lucemia

unread,
Jul 20, 2015, 10:12:58 PM7/20/15
to google-a...@googlegroups.com, jeff.d...@gmail.com

Yes, I can confirm the issues has been solved,
Thanks AppEngine Team, it runs really well now!!

Best Regards

Patrice (Cloud Platform Support)於 2015年7月21日星期二 UTC+8上午12時39分00秒寫道:
Reply all
Reply to author
Forward
0 new messages