So I am using 'django-compressor' to compress all the css files. It does minify and merge all the css files into a single file '9756d9abb2c2.css' but the size of this single file is almost equal to the sum of all css files. And the Google PageSpeed still tells me that:
Compressing http://xxx/9756d9abb2c2.css could save 85.1KiB (87% reduction).
I am not sure what could be the problem :/
Edit: Here are the settings i have:
DEBUG = True
STATIC_ROOT = ''
STATIC_URL = '/stic/'
STATICFILES_DIRS = (
'static',
)
COMPRESS_OFFLINE_CONTEXT = {
'STATIC_URL': '/stic/',
}
COMPRESS_ENABLED = True
COMPRESS_OUTPUT_DIR = 'static/CACHE'
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'compressor.finders.CompressorFinder', # compressor (compress css and js files)
)
MIDDLEWARE_CLASSES = (
####...
'django.middleware.gzip.GZipMiddleware', #enable gzip compression for html
)