Through the webmaster tool query can understand that some rented overseas server sites, especially with Hong Kong server sites, open speed with the domestic server site and no difference. How is the speed of the website on overseas servers, especially in Hong Kong, achieved? If the site is slow, it may depend on many factors, such as the bandwidth of your machine, the configuration of the machine, the exit bandwidth of the machine room and so on. So how can you speed things up if you really feel slow? Here are a few knowledge points to introduce you, master these points, and then apply to the site, can let your site in the page access speed on the change.
**1. Reduce the DNS query time **
Webmaster should be clear network VPS end domain name and IP address is corresponding to each other, when the user sends a request in the client, the computer needs through the domain name and IP address of each other to distinguish, and this transformation work is domain name resolution DNS, general query response needs 10~20 milliseconds, The client browser waits for the DNS query to complete before loading the content under the domain name. Therefore, if we want to speed up the page access speed, we can reduce the DNS query time to make improvements.
2. Minimize the number of HTTP requests
By the time a user visits a web page and gets to the point where the entire page is displayed to the user, many moments have already been spent downloading CSS styles, images, flash, etc. Each of these downloads will require an HTTP request. The more such requests there are, the longer it takes for the entire site to load, which means users will be slower to access on the client side. Therefore, it is necessary to minimize the number of HTTP requests, generally we can write CSS and JS directly to the page, which can also avoid external calls. In summary, you can reduce the number of HTTP requests by reducing the number of external file calls.
**3. Enable Gzip compression **
For some large and medium-sized websites, because the website displays too much content, its single page can reach hundreds or even hundreds of KB, which will make the speed of accessing the website become slow. So at this time you can use Gzip page compression function, can compress a 100K or so articles to a quarter of the original file, which can reduce the amount of network transmission, to improve access speed. VPS basically have compression function, and through this function to some JS,CSS and other files for compression, and then from all aspects of the site optimization, improve access speed.
**4. Use CDN acceleration tool **
At present, many websites will use CDN acceleration, and it does not affect the optimization of the website itself. The basic principle of acceleration is to back up the website image to many VPS nodes, which can improve the access speed of users around the VPS nodes. This acceleration feature can be used to improve the user’s fast access experience.