[geany/www.geany.org] 3802e6: Enable offline compression of CSS/JS and re-add CssAbsoluteFilter

Enrico Tröger git-noreply at xxxxx
Wed May 1 12:33:25 UTC 2019


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Wed, 01 May 2019 12:33:25 UTC
Commit:      3802e6d27a599c9716da8d014b5a63ea8b682970
             https://github.com/geany/www.geany.org/commit/3802e6d27a599c9716da8d014b5a63ea8b682970

Log Message:
-----------
Enable offline compression of CSS/JS and re-add CssAbsoluteFilter

Offline compression should reduce request time.
CssAbsoluteFilter got lost by overriding COMPRESS_CSS_FILTERS but
we need it to sanitize relative CSS import statements in Bootstrap.


Modified Paths:
--------------
    geany/settings.py

Modified: geany/settings.py
5 lines changed, 4 insertions(+), 1 deletions(-)
===================================================================
@@ -432,7 +432,10 @@
 SESSION_COOKIE_SECURE = True
 
 # django compressor
-COMPRESS_CSS_FILTERS = ['compressor.filters.cssmin.CSSMinFilter']
+COMPRESS_CSS_FILTERS = [
+    'compressor.filters.css_default.CssAbsoluteFilter',
+    'compressor.filters.cssmin.CSSMinFilter']
+COMPRESS_OFFLINE = True
 
 # django-honeypot
 HONEYPOT_FIELD_NAME = 'website'



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list