# HG changeset patch # User Marcin Kuzminski # Date 1289928999 -3600 # Node ID a9158dfa05ccf0efd9f539c85104d875542a893e # Parent 6602bf1c5546f9afd86479a0667ca8992974deaf added gzip middleware diff -r 6602bf1c5546 -r a9158dfa05cc rhodecode/config/middleware.py --- a/rhodecode/config/middleware.py Tue Nov 16 15:52:20 2010 +0100 +++ b/rhodecode/config/middleware.py Tue Nov 16 18:36:39 2010 +0100 @@ -11,6 +11,7 @@ from rhodecode.lib.middleware.simplegit import SimpleGit from rhodecode.lib.middleware.https_fixup import HttpsFixup from rhodecode.config.environment import load_environment +from paste.gzipper import make_gzip_middleware def make_app(global_conf, full_stack=True, static_files=True, **app_conf): """Create a Pylons WSGI application and return it @@ -67,6 +68,7 @@ # Serve static files static_app = StaticURLParser(config['pylons.paths']['static_files']) app = Cascade([static_app, app]) + app = make_gzip_middleware(app, global_conf, compress_level=1) app.config = config