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 think the G CDN supports this. j On Sep 14, 7:49 am, Francois Masurel <[email protected]> wrote: > 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 <[email protected]> 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/python/config/appconfig.html#St... > > > On 13 September 2010 21:44, Francois Masurel <[email protected]> wrote: > > > > @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 <[email protected]> wrote: > > > > From my experience, dynamic content is also cached if you set the > > > > cache control headers. > > > > > On Sep 13, 9:25 am, Francois Masurel <[email protected]> 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. > > > > > > The servlet url-pattern matches an include path defined in my > > > > > appengine-web.xml static-files block. > > > > > > The question is : will the files served by my servlet be cached on > > > > > Google CDNs as supposed in this thread : > > > > > >http://groups.google.com/group/google-appengine/browse_thread/thread/. > > > .. > > > > > > It doesn't seem to be the case as each time I purge my browser cache, > > > > > the files are served again from my servlet. > > > > > > Thanx for your help. > > > > > > Francois > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google App Engine" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<google-appengine%2Bunsubscrib > > > [email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
