当前位置:网站首页>解决访问国外公共静态资源速度慢的问题
解决访问国外公共静态资源速度慢的问题
2022-07-05 10:52:00 【辉哥博客】
简介
由于众所周知的原因,jsdelivr国内被墙,部分地区可能无法正常访问,其他国外的公共静态资源也存在访问速度慢或无法正常访问的问题,为解决该问题,辉哥博客&蓝易云安全开发了国外静态资源js和css资源CDN替换国内的脚本,供所有用户免费使用。
说明
本项目为免费,该cdn节点为蓝易云安全赞助,如不喜欢,请勿喷!如果您有该相关技术,可以联系辉哥加入项目组,进行维护。
原理
此脚本可以将以下的 cdn 资源替换为国内的:
www.gstatic.com- 替换为wgstatic.cdn.haah.nettranslate.googleapis.com- 替换为gtranslate.cdn.haah.netthemes.googleusercontent.com- 替换为gtheme.cdn.haah.netsecure.gravatar.com- 替换为gravatar.cdn.haah.netfonts.gstatic.com- 替换为gstatic.cdn.haah.netajax.googleapis.com- 替换为gajax.cdn.haah.netfonts.googleapis.com- 替换为gfont.cdn.haah.netcdnjs.cloudflare.com- 替换为cdnjs.cdn.haah.netcdn.jsdelivr.net- 替换为js.cdn.haah.net
所有国内加速服务的域名列表如下,您只需要修改程序里的原域名即可
| 原域名 | 加速域名 | 制作方法 |
|---|---|---|
| cdnjs.cloudflare.com | cdnjs.cdn.haah.net | Nginx 反代 |
| ajax.googleapis.com | gajax.cdn.haah.net | Nginx 反代 |
| fonts.googleapis.com | gfont.cdn.haah.net | Nginx 反代 |
| fonts.gstatic.com | gstatic.cdn.haah.net | Nginx 反代 |
| themes.googleusercontent.com | gtheme.cdn.haah.net | Nginx 反代 |
| secure.gravatar.com | gravatar.cdn.haah.net | Nginx 反代 |
| www.gstatic.com | wgstatic.cdn.haah.net | Nginx 反代 |
| translate.googleapis.com | gtranslate.cdn.haah.net | Nginx 反代 |
| cdn.jsdelivr.net | js.cdn.haah.net | Nginx 反代 |
后续持续补充。。。
安装
边栏推荐
- 使用GBase 8c数据库过程中报错:80000305,Host ips belong to different cluster ,怎么解决?
- Go language learning notes - first acquaintance with go language
- 力扣(LeetCode)185. 部门工资前三高的所有员工(2022.07.04)
- R3live series learning (IV) r2live source code reading (2)
- A mining of edu certificate station
- Applet framework taro
- 数据类型、
- Web3基金会「Grant计划」赋能开发者,盘点四大成功项目
- Codeforces Round #804 (Div. 2)
- regular expression
猜你喜欢

2022 chemical automation control instrument examination questions and online simulation examination

在C# 中实现上升沿,并模仿PLC环境验证 If 语句使用上升沿和不使用上升沿的不同

Go语言-1-开发环境配置

Explanation of message passing in DGL

Go-3-第一个Go程序

DGL中异构图的一些理解以及异构图卷积HeteroGraphConv的用法

Web3 Foundation grant program empowers developers to review four successful projects

磨礪·聚變|知道創宇移動端官網煥新上線,開啟數字安全之旅!

Honing · fusion | know that the official website of Chuangyu mobile terminal is newly launched, and start the journey of digital security!

Review the whole process of the 5th Polkadot Hackathon entrepreneurship competition, and uncover the secrets of the winning projects!
随机推荐
谈谈对Flink框架中容错机制及状态的一致性的理解
PWA (Progressive Web App)
NAS and San
iframe
Modulenotfounderror: no module named 'scratch' ultimate solution
FreeRTOS 中 RISC-V-Qemu-virt_GCC 的调度时机
About the use of Vray 5.2 (self research notes)
Data types ntext and varchar are incompatible in the not equal to operator - 95 small pang
BOM//
使用GBase 8c数据库过程中报错:80000305,Host ips belong to different cluster ,怎么解决?
Intelligent metal detector based on openharmony
String
How can gbase 8C database view the login information of the login user, such as the date, time and IP of the last login authentication?
Bracket matching problem (STL)
Implement the rising edge in C #, and simulate the PLC environment to verify the difference between if statement using the rising edge and not using the rising edge
LDAP overview
2022 mobile crane driver examination question bank and simulation examination
Basic testing process of CSDN Software Testing Introduction
Explanation of message passing in DGL
Advanced scaffold development