Mauro Ciancio schrieb: > Hello everyone, > > In the app that I've developed with tg2.0 I fetch images from a db. This is my > controller: > > @expose(content_type="image/jpeg") > def picture(self, id): > return search_picture(id) > > This works pretty well but the stored images are a bit heavy (around ~200kb) > and takes to the browser valuable seconds to load. I'm in the same situation > as in my previous post:
You need to render, compare and react an ETag field, and use that to either deliver the image, or return a response with status code 304. Diez -- You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en.

