Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How the virtual host compresses the website

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

What this article shares with you is about how the virtual host compresses the website. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.

The web page compression of the website can improve the speed of opening the web page, and the web page compression generally includes several aspects of compression.

1. The compression of the picture reduces the quality of the picture slightly.

The merging of 2.css and js code, merging all the code that can be merged, reducing the number of page requests.

3.GZIP compression, but the use of GZIP compression of web files, there is often a certain risk. The compression ratio is very high, and the risk is that when search engine spiders search for such compressed files, they often return the code 200064, which is not conducive to the collection of website content, so it is better to use less for important website content.

Start the gzip page compression step of the website

1. Go to the server, open the Internet Information Services Manager, and select right-click on the website, Properties.

two。 Click the service option, check the compressed application file below with the compressed static file, and then click OK.

3. Click the web service extension, right-click to add a new service extension, the name can be named Gzip, click add below, then click Browse, select the gzip.dll option, and then click OK. Set the extension status to allow and check it.

4. Finally, restart the iis server, start-run-enter the command: iisreset / restart, and then press enter. You can check the server information again, showing that there is web page compression, indicating that the setting is successful.

The above is how the virtual host compresses the website, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report