Hi,
I’m using the following code in my .htaccess to enable GZIP file compression. It seems to properly compress all files, except SVG. Has anyone experienced this before? Is there a solution i seem to be overlooking?
<IfModule mod_deflate.c>
<FilesMatch "\.(ico|pdf|svg|js|css|ttf|eot|woff)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
EDIT:
I’ve added this additional bit to make sure the MIME types are correct for svg files. For whatever reason…it still fails to gzip.
AddType image/svg+xml svg
AddType image/svg+xml svgz
Content-Encoding: gzip