Home > Web Front-end > HTML Tutorial > Stackoverflow is slow to open or the style (CSS) cannot be displayed properly_html/css_WEB-ITnose

Stackoverflow is slow to open or the style (CSS) cannot be displayed properly_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:52:20
Original
1242 people have browsed it


I’ve been super unhappy using stackoverflow recently, not to mention the slow loading and the inability to refresh styles, which greatly affects work efficiency.

After checking the reason, it turns out that the stackoverflow website points to CloudFlare, an awesome CDN, but this domestic CDN is blocked, so...

How to solve it? Woolen cloth? I found a pointing resource on the Internet for quick switching in case of CDN failure. The URL is www.sstatic.net.

There are two ways to solve the current problem:

Click directly on the Stack Exchange family of websites in the picture above, and it will jump to the stackexchange.com website. After jumping over, refresh the website you want to visit again, and you should be able to access it normally.

The way to save a few months once and for all: manually modify the local Host file

首先本地获取到 cdn.sstatic.net 的 IP 
Copy after login

ping cdn.sstatic.net

获取到 IP 后,修改 Host 文件
Copy after login

Linux:

/etc/hosts

WINDOWS:

C:WindowsSystem32driversetchosts

将你 ping 到的 IP 地址(x.x.x.x)加到 hosts 文件中即可。
Copy after login

x.x.x.x cdn.sstatic.net

Second The disadvantage of this method is that the IP address is sometimes unstable and needs to be changed after a few months.

It is recommended to use the first method, after all, similar problems have only been encountered for a long time.


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template