Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save quchao/c9a947210edf0e0d53fc to your computer and use it in GitHub Desktop.
Save quchao/c9a947210edf0e0d53fc to your computer and use it in GitHub Desktop.
Accelerate the loading of static resources with China Unicom CDNs (http://120.52.72.*/)
[
{
"name":"Accelerate the loading of static resources with China Unicom CDNs (http://120.52.72.*/)",
"match":{
"str":"^http:\\/\\/(?!(120\\.52\\.72\\.\\d+)).*\\/.*\\.(?:manifest|appcache|html?|xml|json|jpe?g|gif|png|webp|ico|cur|gz|svgz?|mp4|ogg|ogv|webm|htc|css|js|txt|ttf|ttc|otf|eot|woff2?)(?:\\?|#|$)",
"type":0,
"modi":true
},
"sub":{
"str":"^http:\\/\\/(.*)$",
"type":0,
"modi":false,
"modg":false
},
"repl":{
"str":"http://120.52.72.21/$1",
"decode":false
},
"enabled":1
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment