Solve the problem of slow browser access to Github

  • github.comis a developer-oriented social networking platform that provides tools and services such as code hosting, project management, document collaboration, and issue tracking. GitHub is also one of the world's largest open source code hosting platforms, with more than 150 million registered users and hundreds of millions of code repositories.

  • gist.github.comIt is a lightweight code snippet sharing platform provided by GitHub, where anyone can publish and view code snippets. Gist also supports features such as version control and branch management, making it easy to collaborate with other developers or embed code snippets in your own projects.

  • github.global.ssl.fastly.netis an accelerated domain name used by GitHub to speed up the loading of GitHub pages and resources. This domain name uses globally distributed CDN technology to cache GitHub content on servers closer to users and transmit it through faster network transmission protocols, thereby improving page response speed and user experience.

  • assets-cdn.github.comis another accelerated domain used by GitHub to speed up the loading of static resources (such as images, JavaScript files, CSS files, etc.) hosted on GitHub. The domain name also uses CDN technology to cache static resources on servers closer to users and transmit them through faster network transmission protocols, thereby improving the loading speed and response performance of static resources.

  • raw.githubusercontent.comIt is the access domain name of the original code and text files hosted on GitHub, allowing users to directly access the code and text file content on GitHub. This domain name is usually used to store data files or static web page resources in code warehouses open to the public, and can also be used to obtain public datasets or other types of information through third-party tools.

  • cloud.githubusercontent.com: GitHub's cloud storage service, used to provide storage and distribution of large files, such as video, audio, etc.

  • camo.githubusercontent.com: GitHub's mirror proxy service, used to access resources at HTTP addresses in an HTTPS environment, such as pictures, style sheets, etc.

  • avatars0-8.githubusercontent.com: GitHub's avatar service, which is used to provide avatar icons for users and organizations, where the numbers represent different avatar numbers.

Open the webpage https://www.ipaddress.com/ip-lookup

Enter the following five names in the input box to query their corresponding IP addresses:

github.com
gist.github.com
github.global.ssl.fastly.net
assets-cdn.github.com
raw.githubusercontent.com

one,github.com

GitHub: Let's build from here · GitHub

 two,gist.github.com

  Discover gists · GitHub

 

 three,github.global.ssl.fastly.net

github.global.ssl.fastly.net

 

 

Four,assets-cdn.github.com

assets-cdn.github.com

 five,raw.githubusercontent.com

raw.githubusercontent.com

 6. cloud.githubusercontent.com、camo.githubusercontent.com、avatars0-8.githubusercontent.comCorresponding to the fifth IP address

Compare the IP with the fastest response through ping, I almost write the first one here, 185.199.108.133

Right now:

185.199.108.133 cloud.githubusercontent.com
185.199.108.133 camo.githubusercontent.com
185.199.108.133 avatars0.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
185.199.108.133 avatars3.githubusercontent.com
185.199.108.133 avatars4.githubusercontent.com
185.199.108.133 avatars5.githubusercontent.com
185.199.108.133 avatars6.githubusercontent.com
185.199.108.133 avatars7.githubusercontent.com
185.199.108.133 avatars8.githubusercontent.com

 

 Seven, modify the hosts file

 add at the bottom

 

 

9. Refresh DNS

The cmd command is as follows

10. Tips

By default, the operating system will try the IP addresses in the order of the hosts file, that is, the first IP address will be tried first, and if the connection fails, the next IP address will be tried until an available IP address is found. Therefore, when adding multiple IP addresses to the hosts file, they can be arranged in descending order of network performance, so that the operating system will give priority to using IP addresses with better network performance, thereby improving access speed and stability.

When I try here, I can basically PING through, and the difference is not too big, so I copied it from the original.

After completion, the browser access speed is significantly improved.

These need to be checked out by yourself, and the IP may change.

Reference link https://www.cnblogs.com/jiannanchun/p/15397235.html
 

Guess you like

Origin blog.csdn.net/aligadorr/article/details/131274735