Apache 2.4 gzip compression utility works not only on .svg

Work with gzip compression on many types (for example: javascript, css, xml, html), but it does not work only with the .svg type.

httpd.conf (part of revelant)

LoadModule mime_module modules/mod_mime.so LoadModule deflate_module modules/mod_deflate.so LoadModule filter_module modules/mod_filter.so <IfModule mime_module> TypesConfig conf/mime.types </IfModule> <IfModule mod_mime.c> AddEncoding gzip svgz </IfModule> <IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE application/atom+xml \ application/javascript \ application/json \ application/rss+xml \ application/vnd.ms-fontobject \ application/x-font-ttf \ application/x-font-woff \ application/x-web-app-manifest+json \ application/xhtml+xml \ application/xml \ font/opentype \ image/svg+xml \ image/x-icon \ text/css \ text/html \ text/plain \ text/x-component \ text/xml </IfModule> </IfModule> 

conf / mime.types (part with revelant)

 image/svg+xml svg svgz 

with this tool http://checkgzipcompression.com/ on

+5
source share

Source: https://habr.com/ru/post/1241827/


All Articles