• Resolved fozozo

    (@fozozo)


    Hello,
    when “Optimize CSS and JS files” is enabled, you generate this in the htaccess file:

    <IfModule mod_deflate.c>
    SetOutputFilter DEFLATE
    </IfModule>
    <IfModule mod_filter.c>
    AddType x-font/woff .woff
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf
    </IfModule>`

    All of the DEFLATE part should be placed in the <IfModule mod_deflate.c> section, otherwise if mod deflate is not enabled on the server, the website will stop working.

    • This topic was modified 3 years, 1 month ago by fozozo.
Viewing 1 replies (of 1 total)
  • Plugin Author John Darrel

    (@johndarrel)

    Thanks @fozozo for the notification. Really appreciate it.

    We’ll fix this and include it in the next version of the plugin.

    Best, John

Viewing 1 replies (of 1 total)
  • The topic ‘Bug in Optimize CSS and JS files’ is closed to new replies.