nginx does't serve compressed static .html files. is it a bug?

Francis Daly francis at daoine.org
Fri Feb 6 22:53:13 UTC 2015


On Fri, Feb 06, 2015 at 11:22:22PM +0200, peter petrov wrote:

Hi there,

> # ls -l html/index.html*
> -rw-r--r-- 1 root root 612 Jul 23  2013 html/index.html
> -rw-r--r-- 1 root root 392 Feb  5 21:06 html/index.html.gz

> 1. sudo tar czvf index.html.gz index.html

Don't use tar.

Just use gzip.

gzip index.html

or

gzip -c index.html > index.html.gz

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list