mrwuzs

问题

1,博客内容大部分都是用github做的图床,发现有时候会出现很多图片都无法加载的情况

2,访问图片地址,无法连接raw.githubusercontent.co

解决

1,配置host地址,添加GitHub直链接

#GitHub Start
192.30.253.112 github.com
192.30.253.119 gist.github.com
151.101.100.133 assets-cdn.github.com
151.101.100.133 raw.githubusercontent.com
151.101.100.133 gist.githubusercontent.com
151.101.100.133 cloud.githubusercontent.com
151.101.100.133 camo.githubusercontent.com
151.101.100.133 avatars0.githubusercontent.com
151.101.100.133 avatars1.githubusercontent.com
151.101.100.133 avatars2.githubusercontent.com
151.101.100.133 avatars3.githubusercontent.com
151.101.100.133 avatars4.githubusercontent.com
151.101.100.133 avatars5.githubusercontent.com
151.101.100.133 avatars6.githubusercontent.com
151.101.100.133 avatars7.githubusercontent.com
151.101.100.133 avatars8.githubusercontent.com 
#github end

2,刷新dns,cmd执行

ipconfig /flushdns

3,重新访问,发现还是访问不了

4、Chrome浏览器地址栏处打开:chrome://net-internals/#hsts

5、可以在Query HSTS/PKP domain处搜索你的网站是否列为static HSTS条目,说明确实

6、滑到最底下Delete domain security policies处输入被HSTS的域名,点击Delete后,刷新一下即可打开。不行就多点Delete几下总会可以的!

目前已采用cdn加速,不需要配置也能显示

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-16
  • 2021-06-14
  • 2022-12-23
  • 2021-09-19
  • 2021-07-18
  • 2021-12-27
  • 2021-11-02
猜你喜欢
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案