Coder Social home page Coder Social logo

blog-imgs's Introduction

blog-imgs 博客图床

jsDelivr优化加速

  • 这里详细说一下设定自定义域名,由于GitHub访问上传速度很慢,所以需要进行优化。

  • 设定自定义域名的作用是,在图片上传后,PicGo会按照【自定义域名+储存路径+上传的图片名】的方式生成访问链接,放到粘贴板上

  • 这里我们要使用 jsDelivr 加速访问,所以可以设置为https://cdn.jsdelivr.net/gh/用户名/图床仓库名 ,上传完毕后,我们就可以通过https://cdn.jsdelivr.net/gh/<用户名>/<仓库名>/<文件及路径>加速访问我们的图片了,例如设置为:https://cdn.jsdelivr.net/gh/fudalijunyi/cdn/img/logo2.jpg

  • Tip:也可以使用版本号的方式,用 @符链接。格式为:https://cdn.jsdelivr.net/gh/<用户名>/<仓库名>@[分支/版本号]/<文件及路径>,例如:https://cdn.jsdelivr.net/gh/fudalijunyi/[email protected]/img/logo2.jpg 采用版本号的好处是无缓存限制,及时更新资源!

blog-imgs's People

Contributors

shenxiang216 avatar

Stargazers

欣欣仔 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.