bottlepy / bottle

bottle.py is a fast and simple micro-framework for python web-applications.
http://bottlepy.org/
MIT License
8.4k stars 1.46k forks source link

Documentation on gzipping is skeletal #610

Open eric-wieser opened 10 years ago

eric-wieser commented 10 years ago

The docs say:

... it is the recommendation of the Bottle project that Gzip compression is best handled by the WSGI server Bottle runs on top of. WSGI servers such as cherrypy provide a GzipFilter middleware that can be used to accomplish this.

However, there's no explanation of how this can actually be done using just bottle and cherrypy, and no one else seems to know either.

Can a more detailed example be added to the docs?

muflone commented 10 years ago

I don't know cherrypy GZipFilter but you could see the bottle-compressor plugin https://bitbucket.org/ibkon/bottle-compressor/