Compress svg files (font awesome)

To compress fontawesome and more generally any svg files simply add the following two lines to the top of your .htaccess file in your root directory.

 

AddType image/svg+xml .svg
AddOutputFilterByType DEFLATE image/svg+xml


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *