Coder Social home page Coder Social logo

关于 CDN 前端该懂的一切 about blog HOT 1 OPEN

rottenpen avatar rottenpen commented on June 12, 2024
关于 CDN 前端该懂的一切

from blog.

Comments (1)

rottenpen avatar rottenpen commented on June 12, 2024

补充一下 QA:

公司官网有没有放cdn?

  • 看到 www.xxx.com 的 index.html 文件是从正常域名中请求到的,但其他像 js/css 文件,是通过典型的 cdn 域名中获取的。

1

简单来说就是 CDN 服务商会分配给用户一个CNAME ,需要在域名解析服务商处将加速域名的DNS解析记录指向CNAME域名,访问请求才能转发到CDN节点上,实现CDN加速。 所以说,我们访问 www.xxx.com DNS解析会指向 CDN 的 CNAME,而不是我们中心服务器。 而针对其他 api 请求,调度服务会自动分配最佳的回源路径供用户向源服务器获得想到的数据

from blog.

Related Issues (20)

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.