h5bp / server-configs-nginx

Nginx HTTP server boilerplate configs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add GZip compression to woff fonts

juan88 opened this issue · comments

More woff fonts are available now and it is not in the default configuration of nginx.

Maybe this is useful for someone else.

Just add application/font-woff in gzip_types config.

I can add the PR if you want.

Thanks!

Add GZip compression to woff fonts

WOFF files are compressed by default using gzip.

@juan88 See: h5bp/server-configs-apache#42

i just wanted to add that some woff files are compressed very badly and actually gzipping them makes sense... the linked issue's verdict "It general it doesn't seem to be worth it." is perhaps fine, but with custom fonts all bets are off.