Mengaktifkan gzip Compression di nginx

Salah satu teknik optimasi kecepatan lainnya adalah dengan membuat web kita mendukung gzip compression, caranya dengan menambahkan baris berikut di nginx.conf Anda:

gzip on;
gzip_disable "msie6";

gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_min_length 256;
gzip_types text/plain text/css application/json application/x-javascript application/javascript \
text/xml application/xml application/xml+rss text/javascript;

GZIP TEST:

https://www.giftofspeed.com/gzip-test/
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s