reading over your link it looks like you have a partial solution, at least as indicated by Diez, could you provide a link to that as well so that we don't have to go looking for it?
Mauro Ciancio wrote: > 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: > > (http://groups.google.com/group/turbogears/browse_thread/thread/a39ece38c77e5429/a34e72eacc29e74b#a34e72eacc29e74b) > > I'd like that the pictures were loaded only once and then cached by the > browser. > Any ideas? > > I've thought about inserting the http headers from my controller (calling to > pylons.request.headers & .response), but I'd have to implement the mechanism > and I don't want to reinvent the weel. > > Cheers, > Happy new year =) ! > -- 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.

