[google-appengine] Re: Can Google CDNs cache dynamically generated files ?

2010-09-15 Thread Francois Masurel
Geez, it seems to be a Java only problem : http://code.google.com/p/googleappengine/issues/detail?id=2070 On 15 sep, 23:51, Francois Masurel wrote: > Sorry guys.  But it doesn't seem to work in fact.  Shit. > > My static files were certainly kept in Google CDNs even after having > removed them f

[google-appengine] Re: Can Google CDNs cache dynamically generated files ?

2010-09-15 Thread Francois Masurel
Sorry guys. But it doesn't seem to work in fact. Shit. My static files were certainly kept in Google CDNs even after having removed them from my web app. Has anybody succeeded ? On 14 sep, 22:17, Francois MASUREL wrote: > Thanx Ikai, that was the final answer we were waiting for. > > We now h

Re: [google-appengine] Re: Can Google CDNs cache dynamically generated files ?

2010-09-14 Thread Francois MASUREL
Thanx Ikai, that was the final answer we were waiting for. We now have a good solution for serving more than 3000 GWT generated files efficiently :-) François On Tue, Sep 14, 2010 at 22:12, Ikai Lan (Google) > wrote: > I wouldn't call it a CDN, but the caching infrastructure at Google may hol

Re: [google-appengine] Re: Can Google CDNs cache dynamically generated files ?

2010-09-14 Thread Ikai Lan (Google)
I wouldn't call it a CDN, but the caching infrastructure at Google may hold on to static assets with the correct headers set. One of the key benefits here is that you won't be charged CPU time for serving the asset, though bandwidth charges will still be applied. This is only a best effort caching

Re: [google-appengine] Re: Can Google CDNs cache dynamically generated files ?

2010-09-14 Thread Francois MASUREL
Full answer there : http://www.kyle-jensen.com/proxy-caching-on-google-appengine On Tue, Sep 14, 2010 at 21:47, Stephen wrote: > > > On Sep 13, 5:25 pm, Francois Masurel wrote: > > Let me explain : > > > > I have potentially too many (> 3000) GWT generated files in my java > > application.

Re: [google-appengine] Re: Can Google CDNs cache dynamically generated files ?

2010-09-14 Thread Robert Kluin
Interesting. Thanks for the info. On Tue, Sep 14, 2010 at 15:44, Francois Masurel wrote: > Yes, it works !  Thanx everybody. > > I just added the  "Cache-Control:public" header to my content.  I > cleared my browser cache.  After refreshing the page I don't see any > log coming from my ZipS

[google-appengine] Re: Can Google CDNs cache dynamically generated files ?

2010-09-14 Thread Stephen
On Sep 13, 5:25 pm, Francois Masurel wrote: > Let me explain : > > I have potentially too many (> 3000) GWT generated files in my java > application.  I've already packed all my java classes in a jar. > > So I made a zip of all these files and implemented a servlet to serve > them dynamically. >

[google-appengine] Re: Can Google CDNs cache dynamically generated files ?

2010-09-14 Thread Francois Masurel
Yes, it works ! Thanx everybody. I just added the "Cache-Control:public" header to my content. I cleared my browser cache. After refreshing the page I don't see any log coming from my ZipServingServlet. Cool. BTW if you don't add the max-age info to your Cache-Control header, Google sets it

[google-appengine] Re: Can Google CDNs cache dynamically generated files ?

2010-09-14 Thread Francois Masurel
Hi Jason, thanx for your answer. Do you really mean that putting the right cache-control headers in my content will allow it to be cached by Google CDNs ? That would be great. I'll make a test as soon as possible. On 14 sep, 19:28, Jason C wrote: > Cache-Control: public, max-age=[seconds as

[google-appengine] Re: Can Google CDNs cache dynamically generated files ?

2010-09-14 Thread Jason C
Cache-Control: public, max-age=[seconds as an integer] Should do the trick. "Public" is important otherwise downstream caches (i.e., the Google CDN) won't hold the content (e.g., "private" will be end-browser cache only). If you want some good 304 revalidation, also use Last-Modified or ETag. I

[google-appengine] Re: Can Google CDNs cache dynamically generated files ?

2010-09-14 Thread Francois Masurel
For the moment, I'll use memcache on the server side and cache control headers on the client side. On Sep 14, 11:10 am, Andrius A wrote: > it wont be cached in CDN, but if you specify the correct http headers it > will be cached by the browser. > check:http://code.google.com/appengine/docs/pytho

Re: [google-appengine] Re: Can Google CDNs cache dynamically generated files ?

2010-09-14 Thread Andrius A
it wont be cached in CDN, but if you specify the correct http headers it will be cached by the browser. check: http://code.google.com/appengine/docs/python/config/appconfig.html#Static_File_Handlers On 13 September 2010 21:44, Francois Masurel wrote: > @Robert : yep, that's what I meant > > @Pet

[google-appengine] Re: Can Google CDNs cache dynamically generated files ?

2010-09-13 Thread Francois Masurel
@Robert : yep, that's what I meant @Peter : can someone at Google confirms that putting the right cache controls headers (to be determined) servlet generated content can be cached in Google CDNs ? Thanx everybody for your answers. On 13 sep, 22:00, Peter Liu wrote: > From my experience, dynamic

[google-appengine] Re: Can Google CDNs cache dynamically generated files ?

2010-09-13 Thread Peter Liu
>From my experience, dynamic content is also cached if you set the cache control headers. On Sep 13, 9:25 am, Francois Masurel wrote: > Let me explain : > > I have potentially too many (> 3000) GWT generated files in my java > application.  I've already packed all my java classes in a jar. > > So