Support » Plugin: LiteSpeed Cache » Combined css and js files are not compressed

  • Resolved dpacks

    (@dpacks)


    Hello,
    I am facing an issue where google tells me a file served can be greatly reduced if it were to be served gzipped. The culprit is a combined css file put together by LSCache.

    Here are my settings:
    https://imgur.com/a/ScQvT

    I have tried enabling compression through W3TotalCache. While it reduces the overall site download size by about 20%, the main js and css combined files are still being served uncompressed.

    The CSS file is 1.7MB in size and google complains about a missed 81% file size decrease opportunity: https://imgur.com/a/6Kd91

    I’ve called the hosting company, they said gzip is enabled by default for all accounts, so I checked and indeed gzip is enabled for the website as per https://checkgzipcompression.com/ and similar tools.

    Here is my .htacess portion concerned with compression:

    
     # Gzip Compression
    <IfModule mod_filter.c>
        AddOutputFilterByType DEFLATE "application/atom+xml" \
                                      "application/javascript" \
                                      "application/json" \
                                      "application/ld+json" \
                                      "application/manifest+json" \
                                      "application/rdf+xml" \
                                      "application/rss+xml" \
                                      "application/schema+json" \
                                      "application/vnd.geo+json" \
                                      "application/vnd.ms-fontobject" \
                                      "application/x-font-ttf" \
                                      "application/x-javascript" \
                                      "application/x-web-app-manifest+json" \
                                      "application/xhtml+xml" \
                                      "application/xml" \
                                      "font/eot" \
                                      "font/opentype" \
                                      "image/bmp" \
                                      "image/svg+xml" \
                                      "image/vnd.microsoft.icon" \
                                      "image/x-icon" \
                                      "text/cache-manifest" \
                                      "text/css" \
                                      "text/html" \
                                      "text/javascript" \
                                      "text/plain" \
                                      "text/vcard" \
                                      "text/vnd.rim.location.xloc" \
                                      "text/vtt" \
                                      "text/x-component" \
                                      "text/x-cross-domain-policy" \
                                      "text/xml"
    
    </IfModule>
    # END Gzip Compression
    

    Is compression not supported by the plugin? Is there anything I can do to improve the google score?

    • This topic was modified 2 years, 6 months ago by dpacks.
    • This topic was modified 2 years, 6 months ago by dpacks.
  • The topic ‘Combined css and js files are not compressed’ is closed to new replies.