1. 浠涔堟槸CDN锷犻
CDN镄勫叏绉版槸Content Delivery Network锛屽嵆鍐呭瑰垎鍙戠绣缁溿傚叾锘烘湰镐濊矾鏄灏藉彲鑳介伩寮浜掕仈缃戜笂链夊彲鑳藉奖鍝嶆暟鎹浼犺緭阃熷害鍜岀ǔ瀹氭х殑鐡堕埚拰鐜鑺傦纴浣垮唴瀹逛紶杈撶殑镟村揩銆佹洿绋冲畾銆
绠鍗旷殑𨱒ヨ达纴灏辨槸鎶婂师链嶅姟鍣ㄤ笂鏁版嵁澶嶅埗鍒板叾浠栨湇锷″櫒涓婏纴鐢ㄦ埛璁块梾镞讹纴闾e彴链嶅姟鍣ㄨ繎璁块梾鍒扮殑灏辨槸闾e彴链嶅姟鍣ㄤ笂镄勬暟鎹銆侰DN锷犻熶紭镣规槸鎴愭湰浣庯纴阃熷害蹇銆傞傚悎璁块梾閲忔瘆杈冨ぇ镄勭绣绔欍
镓╁𪾢璧勬枡
鍦ㄤ紶缁熺殑锷ㄦ佺郴缁熺殑璁块梾涓锛岀敤鎴峰圭绣缁灭殑璇锋眰杩囩▼锛屼竴鑸闇瑕佺粡杩囩绣缁滀腑澶氩彴璺鐢卞櫒镄勪紶杈掳纴链缁埚皢鍙戦佺殑璇锋眰浜や簬锷ㄦ佺郴缁熸潵澶勭悊锛屼絾鏄鐢变簬IP缃戠粶链韬镄勨滃敖锷涜屼负镄勫师鍒欌濄佺绣缁滈摼璺涓澶嶆潅镄勭幆澧冨强纭浠剁殑涓嶅彲闱犳х殑纭瀹炲瓨鍦锛岃嚧浣跨敤鎴疯佸嚭鐜伴吨澶嶅彂阃佺殑璇锋眰镄勭幇鐘讹纴镓浠ユ渶缁埚艰嚧鐢ㄦ埛镄勮锋眰鍦ㄦ彁浜ょ殑杩囩▼涓鍑虹幇绛夊緟銆佹暟鎹锷犺浇镞堕棿杩囬暱镄勪竴浜涚幇璞$殑鏅阆嶅瓨鍦锛岃繖浜涘湪绾挎彁浜ゅ纺绯荤粺镄勭紦鎱㈢洿鎺ュ湴褰卞搷鍒板姙鍏浜哄憳镄宸ヤ綔鏁堢巼锛岃繖涔熸槸鍒剁害镌寰埚氩ぇ鍨嬩紒涓氩湪鍗忓悓锷炲叕OA銆丒RP銆丼AP绛淇℃伅鍖栧缓璁涓锛屽嚭鐜版渶澶氱殑闂棰樸
钥孋DN鍒嗗彂瑙e喅鏂规堣В鍐充简涓庨润镐佺绣绔欑浉鍏崇殑镐ц兘鍜屽彲闱犳ч梾棰桡纴钥屽湪褰扑粖鍦ㄧ嚎涓氩姟浣挞獙涓锛屼笌鍒嗗彂闱欐佸拰锷ㄦ佸厓绱犲拰搴旂敤鐩稿叧镄勭嫭鐗规写鎴桡纴鍒欑敱阃熺绣镄勫姩镐佺绣绔椤姞阃熸潵瑙e喅銆
CDN鑳藉嚑涔庢兜鐩栧浗鍐呮墍链夌嚎璺銆傝屽湪鍙闱犳т笂锛 CDN 鍦ㄧ粨鏋勪笂瀹炵幇浜嗗氱偣镄勫啑浣欙纴鍗充娇镆愪竴涓鑺傜偣鐢变簬镒忓栧彂鐢熸晠闅滐纴瀵圭绣绔欑殑璁块梾鑳藉熻镊锷ㄥ煎悜鍏朵粬镄勫仴搴疯妭镣硅繘琛屽搷搴斻侰DN鑳借交𨱒惧疄鐜扮绣绔欑殑鍏ㄥ浗阈鸿撅纴涓嶅繀钥冭槛链嶅姟鍣ㄧ殑鎶曞叆涓庢墭绠°佷笉蹇呰冭槛鏂板炲甫瀹界殑鎴愭湰銆佷笉蹇呰冭槛澶氩彴链嶅姟鍣ㄧ殑闀滃儚钖屾ャ佷笉蹇呰冭槛镟村氱殑绠$悊缁存姢鎶链浜哄憳銆
鍙傝冭祫鏂欙细锏惧害锏剧戋斺斿唴瀹瑰垎鍙戠绣缁
2. 鍒╀簬鎼寤哄浗鍐呯绣绔欑殑鍏嶈垂CDN锷犻焔ithub鍜宯pm鏂瑰纺
鎼寤哄浗鍐呯绣绔欑殑锷犻熷埄鍣锛氩厤璐笴DN浣跨敤鎸囧崡
鍦ㄥ紑鍙戜釜浜哄崥瀹hexo涓婚樷斺hexo-theme-A4镄勮繃绋嬩腑锛屼互鍙娄负浜嗘彁鍗囩绣绔椤浘鐗囧姞杞介熷害锛屾垜娣卞叆镰旂┒浜嗗备綍阃氲繃鍏嶈垂CDN链嶅姟锷犻焔ithub鍜宯pm璧勬簮镄勮块梾銆备互涓嬫槸涓浜涘疄鐢ㄤ笖镞犻渶棰濆栬垂鐢ㄧ殑CDN阃夐”锛岃╀綘镄勭绣绔椤唴瀹瑰姞杞藉备笣鑸椤虹晠銆
1. npm锷犻熷埄鍣
瀵逛簬npm鍖呭唴镄勮祫婧愶纴npm镊韬镄凛DN鎻愪緵浜嗗緢濂界殑鏀鎸併备綘鍙浠ヤ娇鐢ㄤ互涓嬮摼鎺ュ姞阃熻块梾浣犵殑椤圭洰璧勬簮锛岃板缑镟挎崲涓轰綘镄勪粨搴揿湴鍧锛
aliyun: https://npm.elemecdn.com/hexo-theme-a4@latest/source/css/markdown.css
jsdelivr: https://jsd.onmicrosoft.cn/npm/hexo-theme-a4@latest/source/css/markdown.css (锲炴簮: https://jsd.onmicrosoft.cn/npm/hexo-theme-a4@latest/source/css/markdown.css)
unpkg: https://unpkg.com/hexo-theme-a4@latest/source/css/markdown.css (锲炴簮: https://npm.onmicrosoft.cn/hexo-theme-a4@latest/source/css/markdown.css)
2. GitHub锲惧簥锷犻
濡傛灉浣犵殑锲惧簥浠揿簱镓樼″湪GitHub涓婏纴钖屾牱鍙浠ュ熷姪CDN浼桦寲銆傝繖閲屼互jsdelivr涓轰緥锛
jsdelivr: https://cdn.jsdelivr.net/gh/hininojay/images/source/img/postImages/GTD.jpg (锲炴簮: https://jsd.onmicrosoft.cn/gh/hininojay/images/source/img/postImages/GTD.jpg)
statically: https://cdn.statically.io/gh/hininojay/images/main/source/img/postImages/GTD.jpg
纭淇濆湪閰岖疆镞跺惎鐢ㄥ洖婧愬姛鑳斤纴杩欐牱鍙浠ョ‘淇濆师濮嬭祫婧愬拰CDN涔嬮棿镄勫悓姝ワ纴鎻愬崌鐢ㄦ埛浣挞獙銆傞氲繃杩欎簺鍏嶈垂镄凛DN链嶅姟锛屼綘镄勫浗鍐呯敤鎴峰皢浜鍙楀埌镟村揩銆佹洿绋冲畾镄勮祫婧愬姞杞介熷害銆
浣跨敤杩欎簺CDN锷犻熺瓥鐣ワ纴镞犺烘槸鍗氩㈠唴瀹硅缮鏄椤圭洰渚濊禆锛岄兘鑳藉湪涓嶅炲姞棰濆栨垚链镄勬儏鍐典笅锛屼负浣犵殑缃戠珯甯︽潵鏄捐宪镄勬ц兘鎻愬崌銆傜珛鍗充紭鍖栦綘镄勭绣绔欙纴璁╄块梾钥呬韩鍙楁棤缂濈殑浣挞獙钖э紒