1. in httpd. add the following content to the site configuration in conf: AddOutputFilterByTypeDEFLATEtext/htmltext/plaintext/csstext/xmltext/javascriptDeflateCompressionLevel9SetOutputFilterDEFLATE2. in. htac 1. in httpd. add the following content
enable the Apache deflate module to turn on compression and reduce bandwidth when the website is transmitted. Apache needs to compile the installation mode, to/usr/local/apache for the Apache installation directory, the source
I accidentally saw an article today and found this interesting stuff. First, and then use it again. Source Address: javascriptdeflate source address javascriptinflate source address Sudone archive: javascriptdeflate archive address javascriptinflate
1. Static cookie Creation
It takes about 80% to 90% of the time, and the visitor will spend a lot of time waiting for your Wordpress to Load Static content. This means that most of the time users browse your website, they are waiting to load, such
I'll point out some important rules in this article about how you can use your JavaScript, what tools you use, and what benefits you'll get from it.
Make sure your code is as concise as possible
Don't rely on javascript for everything. Do not
Locate the following two lines in the Apache configuration file, and then remove the comment # and reboot.
The code is as follows
Copy Code
LoadModule Deflate_module modules/mod_deflate.soLoadModule Expires_module
First of all, we first understand the relevant information of Apache Gzip.
First, Gzip introduction
Gzip is a popular file compression algorithm, now widely used, especially in the Linux platform. When you apply gzip compression to a plain text
Enable the deflate_Module and headers_Module modules in httpd. conf.Remove the preceding two sentences:LoadModule deflate_module modules/mod_deflate.soLoadModule headers_module modules/mod_headers.soAdd the following code at the bottom of the httpd.
JavaScript is now extremely important. Some websites use JavaScript to add charm; many today's Web applications rely on it; some of them are even completely written in JavaScript. In this article, I will point out some important rules to show you
First, Gzip introductionGZIP is the abbreviation for GNU Zip, which is a file compression program for GNU Free Software and is often used to represent the gzip file format. The authors of the software are Jean-loup gailly and Mark Adler. October 31,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.