Gzip set compression and cache expires to improve page speed and performance

0
24
views

In example we use ubuntu 16.04.

Edit your /etc/nginx/nginx.conf

Reference:
gzip, to enable or disable.
gzip_comp_level, compression level 1 to 9. Higher compression will make server slower, but response page size smaller.
gzip_types, compression for specific MIME types.
gzip_vary, to show Accept-Encoding gzip.

Edit /etc/nginx/sites-availaible/foodpalate.com.au.conf

– Set media expired 1 month.
– Set css, js expired in 1 year.

This screenshoot before

And after optimize

LEAVE A REPLY

Please enter your name here
Please enter your comment!