How to improve the access speed in domestic use of foreign space

Source: Internet
Author: User
Keywords Website acceleration

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

The domestic network policy jittery, many stationmaster all will move the website to the foreign country. I am very disgusted with the record photo, there are several sites in the name of the domestic, recently worried about this matter. Anyway, I was definitely not going to take pictures, so, I recently in a well-known foreign host to buy a virtual server, with independent IP, ready for trouble. In the process of testing the host, I found a big problem is that the internet is too slow, much slower than the domestic site. The United States from China halfway to the Earth, one to the light will be around the Earth, this speed is no matter how fast, it is said ping value in 250ms is good. So I thought of the website acceleration.

The first thing I thought of was CDN acceleration, but the CDN is too expensive, the cost of CDN can buy a host again, and heard that CDN to Baidu, Google, etc. included unfavorable, because the IP is in constant change, think also has a reason, although not hands-on test, but I think the webmaster will not take their own site to joke.

Then I thought of a way, that is, the Web page files are arranged at home and abroad on different servers. A static page is composed of text, pictures, CSS, JS and other files, I think of the methods and steps as follows:

1, in the United States to rent a stable, fast server, as the main server;

2, in the domestic rental of a cheap, stable, fast server, as a secondary server, in general, dozens of dollars, two-line is also hundred yuan; if there is a better independent IP, eliminating DNS resolution time, if not, will be used IDC company to provide three-class domain name. IDC Company provides three-level domain names are documented, do not worry about the filing problem, do not worry about the photo issue. (Disclaimer: I am not advertising for the domestic IDC, just to make the visit faster, have to use the domestic mainframe, this can not, hope everyone understanding.) )

3, some documents, mainly including images, CSS, JS Three kinds of files placed in the above secondary server, other relatively large documents can also be put in the domestic. After the transfer of files, the site will be modified, mainly rewrite the template code, the picture, CSS, JS file relative path to the absolute path of the domestic auxiliary server;

4. Test and adjust the website. That's it.

The basic idea of this method is to decorate the webpage files at home and abroad. This method for the generation of static Web site is very practical, for dynamic Web site can also play a certain role. I used Dedecms to do a site test a bit, found that the speed of the site has been open and domestic sites almost the same. Generally speaking, the total size of a page around 250K, including pictures, CSS, JS and so on accounted for 200K, other 50K, so that is equivalent to 80% of the page elements are downloaded in the country. In this way, the equivalent of foreign put the shell of the site, and most of the content of the site in the country.

I study liberal arts, study law, love fair and free, against tyranny, I am not good at computer and network, perhaps some friends already know this method method, may also friends have a better way. The above method may be rather clumsy, but after my test, the effect is really good, the effect can be said to be immediate. Friends may have a better way to accelerate, and hope to explore together. I am not advertising, I do not attach any Web site, I just want everyone to run the site smoothly, and can effectively resist the network of bad governance, to achieve their ideals. The wrong place, a lot of forgiveness.

Insert a digression: If we all do this, will buy a domestic virtual host will be photographed? Doubt. I qq:99509390 and hope to become friends with you.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.