zoukankan      html  css  js  c++  java
  • 解决本博客中的图片加载失败问题

    问题

    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加速,不需要配置也能显示

  • 相关阅读:
    [BZOJ3671][UOJ#6][NOI2014]随机数生成器
    [BZOJ3670][UOJ#5][NOI2014]动物园
    [UOJ#131][BZOJ4199][NOI2015]品酒大会
    [BZOJ4530][Bjoi2014]大融合 LCT + 启发式合并
    有趣的题目名称,有趣的题目
    [BZOJ2959]长跑——新技能:LCT+缩圈
    贴一下WC总结里提到的那道裸题吧。。。
    System and method for assigning a message
    http请求
    jQuery 语法
  • 原文地址:https://www.cnblogs.com/mrwuzs/p/11810247.html
Copyright © 2011-2022 走看看