Hi, limodou wrote: > Here is the article about how to use webob to process File download: > http://pythonpaste.org/webob/file-example.html > > And in this article it'll use > > res.etag = '%s-%s-%s' % (os.path.getmtime(filename), > os.path.getsize(filename), hash(filename)) > > to create etag, so it don't need the whole content to create etag, and > for a large file, using whole content is a bad idea. For the case of serving static files from the file system this would be indeed an option. Besides that I want to get support for wsgi.file_wrapper into the Werkzeug as well.
> And even for a product site, if the site is small I think using > werkzeug to serving static files is not so bad. I stronly recommend against serving static files from Python for production sites. Configuring Apache to serve static files in a folder is a one-liner and it shouldn't be much harder for other servers. I set it on my todo list though, maybe i have a free minute for it. Regards, Armin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pocoo-libs" 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/pocoo-libs?hl=en -~----------~----~----~----~------~----~------~--~---
