Apache mod_deflate does not decompress .svg files

Follow

Comments

2 comments

  • Avatar
    Adam Kijak

    And if we're not using a .htaccess file, where is the line to remove 'svg' from?

  • Avatar
    Robert Asilbekov

    @Adam Kijak if you are no using .htaccess, then you should look for `mod_deflate` directives in apache config files or just add into .htaccess file

     

    <IfModule mod_deflate.c>

    SetEnvIfNoCase REQUEST_URI \\.(?:gif|jpg|jpeg|png)$ no-gzip dont-vary

    AddOutputFilterByType DEFLATE image/svg+xml

    </IfModule>

Please sign in to leave a comment.