Use Compression increase the performance CMS
Compression Gzip

Use Compression increase the performance CMS

Why is HTTP compression?

Compression is an important way to increase the performance CMS. For some documents, size reduction of up to 70% lowers the bandwidth capacity needs. Over the years, algorithms also got more efficient, and new ones are supported by clients and servers.

A. Nginx compression

Default, the nginx server has gzip compression configured.

To configure, open the etc/nginx/nginx.conf file. Check and paste the configuration as follows:

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_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

B. IIS compression

I. Installing IIS Compression

Enter search box [Server Manager]

Run Server Manage

Enter [Add roles and features]

Add roles and features

Check a box [ Static/Dynamic Content Compression] and click Next install it.

Static/Dynamic Content Compression

II. Enable/Disable The Compression

1. Click Start >> Administrative Tools >> Internet Information Services (IIS) Manager.

2. Select the Website for which you want to enable compression.

3. Double Click on Compression.

4. You can tick to enable static/dynamic compression. You can untick to disable the static/dynamic compression.

Enable The Compression


5. Click on Apply Button in Action Pane to save your settings.

C. Check Compression

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

Results



要查看或添加评论,请登录

Manh Vu Dinh的更多文章

社区洞察

其他会员也浏览了