Compression checklist for nginx (do all 4)
Shaved 70% off my HTML/CSS payload with this in the http block:
— gzip on; and gzip_comp_level 5; (6+ wastes CPU for nothing)
— gzip_types text/css application/javascript application/json image/svg+xml; — html is gzipped by default, don't list it
— gzip_min_length 256; so tiny files don't get bloated by headers
— gzip_vary on; so proxies cache both versions
Reload, then curl with -H 'Accept-Encoding: gzip' -I and check the header. Try it tonight.
Root Access Daily
@RootAccessDaily
Compression checklist for nginx (do all 4)
Этот пост опубликован в Telegram-канале Root Access Daily. Подписаться можно по ссылке: @RootAccessDaily.