--
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/-/fVSpDS4gRBoJ.
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.
and get_serving_url()
> On Sep 9, 2011, at 5:02 PM, Ubaldo Huerta wrote:
>
> I wonder what's the prescribed way to serve an asset image (say, a site
> logo)
> 1-The easy way, using static handlers specified in app.yaml
> 2-Uploading them via the blobstore api
> I realize that 1 is simpler to do but I wonder if the fact that doing it via
> blobstore it would be served faster. For one thing, it comes from a
> different domain and the request comes back without cookies. Now, is there a
> difference in cost?
You will have to pay a bit for storage in the blobstore, where in
effect static storage is free.
Otherwise bandwidth usage is the same.
Another benefit of static is you can explicitly set caching headers -
for both the edge-cache and the browser cache. The blobstore urls,
have a default caching header I beleive - but you cant set a really
long caching time.
Also static requests can follow you around on version automatically
(ie different version so a app will get different files automatically)
whereas that will have to be done manually with the blobstore.
As aluded to in the original question, the big one is cookieless
http://developer.yahoo.com/performance/rules.html#cookie_free
And possibly the 'infestructure' used for serving images - its used by
picasa and blogger etc too - is more distributed than static requests
for appengine.
The static requests for appengine, probably still come from the
appengine datacenters, where hopefully the serving url is more
distributed globally. But dont know for sure :)
Objects in the blobstore are inmutable so I'm not sure why I get the following expires headers (for tomorrow) with a test image below.