Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you enable gzip compression for favicon.ico?

How do you enable Apache to compress favicon?

FAILED - (11.6 KB, compressed = 5.7 KB - savings of 5.9 KB) - http://website/favicon.ico
like image 362
Chirag Avatar asked Jan 24 '13 20:01

Chirag


People also ask

How do I enable gzip compression?

To enable GZIP compression on Apache servers, you need to use its mod_filter and mod_deflate modules and configure them properly with the right directives. They will direct Apache to compress server output before sending it to clients over the network.

How do you check gzip compression is enabled or not?

Double click on the file and select headers. Under 'Response headers' you are looking for the 'Connection-Encoding' field, it will say gzip if it is enabled. NOTE: By default, Deflate is enabled on all of our servers.

How do I enable gzip compression in Chrome?

In your browser: In Chrome, open the Developer Tools > Network Tab (Firefox/IE will be similar). Refresh your page, and click the network line for the page itself (i.e., www.google.com ). The header “Content-encoding: gzip” means the contents were sent compressed.

How do I use gzip compression for my website?

Gzip on Windows Servers (IIS Manager)Open up IIS Manager. Click on the site you want to enable compression for. Click on Compression (under IIS) Now Enable static compression and you are done!


1 Answers

Here is my configuration for assets compression with Nginx :

gzip on;
gzip_min_length  1100;
gzip_buffers  4 32k;
gzip_types  text/plain
            application/x-javascript
            text/xml
            text/css
            font/woff
            application/font-woff
            font/truetype
            font/opentype
            font/eot
            application/vnd.ms-fontobject
            image/svg+xml
            image/x-icon;
gzip_vary on;
like image 95
jlecour Avatar answered Sep 21 '22 17:09

jlecour