You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -248,9 +245,6 @@ If you browse to ``http://localhost:8080/stream``, you should see 'START', 'MIDD
248
245
Gzip Compression in Bottle
249
246
--------------------------
250
247
251
-
.. note::
252
-
For a detailed discussion, see compression_
253
-
254
248
A common feature request is for Bottle to support Gzip compression, which speeds up sites by compressing static resources (like CSS and JS files) during a request.
255
249
256
250
Supporting Gzip compression is not a straightforward proposition, due to a number of corner cases that crop up frequently. A proper Gzip implementation must:
@@ -265,7 +259,7 @@ Supporting Gzip compression is not a straightforward proposition, due to a numbe
265
259
* Make sure the cache does not get to big.
266
260
* Do not cache small files because a disk seek would take longer than on-the-fly compression.
267
261
268
-
Because of these requirements, 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.
262
+
Because of these requirements, 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 and reverse proxies often provide built-in features that allow transparent compression without changing the application itself.
0 commit comments