Switch to unified view

a/Allura/allura/config/middleware.py b/Allura/allura/config/middleware.py
...
...
75
    if asbool(app_conf.get('auth.method', 'local')=='sfx'):
75
    if asbool(app_conf.get('auth.method', 'local')=='sfx'):
76
        app = SSLMiddleware(app, app_conf.get('no_redirect.pattern'))
76
        app = SSLMiddleware(app, app_conf.get('no_redirect.pattern'))
77
77
78
    app = ew.ResourceMiddleware(
78
    app = ew.ResourceMiddleware(
79
        app,
79
        app,
80
        compress=not asbool(global_conf['debug']),
80
        # compress=not asbool(global_conf['debug']),
81
        compress=True,
81
        script_name=app_conf.get('ew.script_name', '/_ew_resources/'),
82
        script_name=app_conf.get('ew.script_name', '/_ew_resources/'),
82
        url_base=app_conf.get('ew.url_base', '/_ew_resources/'))
83
        url_base=app_conf.get('ew.url_base', '/_ew_resources/'))
83
84
84
    app = StaticFilesMiddleware(app, app_conf.get('static.script_name'))
85
    app = StaticFilesMiddleware(app, app_conf.get('static.script_name'))
85
86