In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to carry out IIS compression", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to carry out IIS compression" this article.
After the IIS compression feature is enabled on the IIS server, before the IIS server sends the page content to the browser, the content will be compressed on the server, and then the compressed data will be sent. After receiving the data, the browser will automatically decompress it and display it. Because the data transmitted on the network is compressed, the content of the page can be transmitted to the browser faster and the browsing speed of the page can be improved.
Although it takes a certain amount of CPU time to compress the page content on the IIS server, it will no longer cause any problem for the mainstream server CPU. And this CPU time is too cost-effective compared with the saved data transmission time. After compressing one page at a time, IIS caches the compressed files to disk to avoid repeated compression next time.
Enabling IIS compression on the IIS server can be done through the IIS manager of the graphical interface, but some configurations cannot be done only through the IIS manager, so we use one of IIS's scripting tools for all the management and configuration. The following instructions need to be executed at a command prompt on the server.
Enable static file (.js, .css, .html, etc.) IIS compression on the IIS server:
Cscript C:\ Inetpub\ adminscripts\ adsutil.vbs set w3svc/filters/compression/parameters/HcDoStaticCompression true
Enable IIS compression of dynamic files (such as .asp) on the IIS server:
Cscript C:\ Inetpub\ adminscripts\ adsutil.vbs set w3svc/filters/compression/parameters/HcDoDynamicCompression true
To add the ".aspx" file type to the dynamic file IIS compression (all pages of the SharePoint site are .aspx), you need to execute two instructions:
Cscript C:\ Inetpub\ adminscripts\ adsutil.vbs SET W3SVC/Filters/Compression/Deflate/HcScriptFileExtensions "asp"dll"exe"aspx" cscript C:\ Inetpub\ adminscripts\ adsutil.vbs SET W3SVC/Filters/Compression/gzip/HcScriptFileExtensions "asp"dll"exe"aspx"
There are also two instructions to increase the default IIS compression ratio:
Cscript C:\ Inetpub\ adminscripts\ adsutil.vbs SET W3Svc/Filters/Compression/GZIP/HcDynamicCompressionLevel "9" cscript C:\ Inetpub\ adminscripts\ adsutil.vbs SET W3Svc/Filters/Compression/DEFLATE/HcDynamicCompressionLevel "9" above is all the content of this article "how to compress IIS". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.