--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/2kmTyfznZmEJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
My experience is that Edge Cache bounces between on, and off, and you can’t depend on it working. Oddly, It has never not worked for my MS Apps, only my HR have issues.
--
Hi Joshua,The edge cache is just that - a cache. It doesn't guarantee that no 304 requests will reach your app, only that they will be satisfied by the cache if possible - and if the headers you set permit it. The more popular your content is, the more effect you're likely to see from the cache.-Nick Johnson
My experience is that Edge Cache bounces between on, and off, and you can’t depend on it working. Oddly, It has never not worked for my MS Apps, only my HR have issues.
Sure, but when designing our apps we really need to know a rough idea
what to expect from each caching layer. App design for "memcache
clears every 30 seconds" will be different from "memcache clears every
5 days".
I too would like to have better understanding of edge cache behavior.
So far the only real documentation is Brandon's experimental
observations. I don't need rigid guarantees, I just want a rough idea
what to expect.
Jeff
I also think that my MS vs HR is similar, they don't reside on quite the
same infrastructure and some app that also MS "buys" me priority in the
Cache Tier System.
Again Conjecture based on what I can see on each side of several black
boxes.
Jeff
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
I think Nick meant that popular content is less likely to be evicted from the cache, not that it is only cached if it is popular.
I'd also like to see a rough idea of what to expect from the edge-cache layer included in the documentation.
@app.after_requestdef make_conditional(response):"""Unconditional request handled by Python::$ curl -I foo.appspot.comHTTP/1.1 200 OKCache-Control: public, max-age=9999ETag: "foo"...You should see "in Python" logged for this request.Subsequent conditional request should be handled by Google's edge cache::$ curl -H'if-none-match: "foo"' -I foo.appspot.comHTTP/1.1 304 Not Modified..."in Python" won't be logged for this request if handled by the edge cache."""app.logger.debug('in Python')response.cache_control.public = Trueresponse.cache_control.max_age = 9999# in case Google's edge cache isn't working, serve 304s from Python:response.add_etag()return response.make_conditional(request)