To cache images, I'm trying to do:

@cache(request.env.path_info,60,cache.ram)
def download(): return response.download(request,db)

But seems that is not working:
http://www.web2py.com.ar/raf10dev/default/index
(see images at sidebar, if you quickly reload pages, they fail)

The book says something about response.render, but nothing about download...
Anyway, I'm not sure if this is a good use of @cache, are there any other way ?

BTW, why Cache-Control: no?...

Best regards,

Mariano Reingart
http://www.sistemasagiles.com.ar
http://reingart.blogspot.com

Reply via email to