sinzmise-cetastories-en 2.0.0-1732432357981 → 2.0.0-1732432800579

Sign up to get free protection for your applications and to get access to all the features.
package/config.yaml CHANGED
@@ -1,20 +1,5 @@
1
1
  name: CetaHouseEnCache
2
2
  catch_rules:
3
- - rule: _
4
- transform_rules:
5
- - search: \#.+
6
- searchin: url
7
- replace: ''
8
- - search: _
9
- action: fetch
10
- fetch:
11
- engine: fetch
12
- - search: (^4|^5)
13
- searchin: status
14
- action: return
15
- return:
16
- body: The GateWay is down!This Page is provided by ClientWorker!
17
- status: 503
18
3
  - rule: ^https\:\/\/((cdn|fastly|gcore|test1|quantil)\.jsdelivr\.net\/npm|unpkg\.com)
19
4
  transform_rules:
20
5
  - search: _
@@ -40,3 +25,35 @@ catch_rules:
40
25
  - https://jsd.cdn.storisinz.site/gh
41
26
  - https://code.webcache.cn/gh
42
27
 
28
+ - rule: _ #ClientWorker语法糖,匹配当前域,返回一个域名带端口
29
+ transform_rules: #转换规则,最上面的优先最高
30
+ - search: \#.* #在发送请求时匹配#后内容并移除
31
+ replace: ''
32
+ - search: \?.* #在发送请求时匹配?后内容并移除,仅限静态请求
33
+ replace: ''
34
+ - search: boringbay\.com
35
+ action: skip
36
+ - search: _
37
+ replace:
38
+ - _ #保留原始请求
39
+ - en.vercel.blog.sinzmise.top #Vercel托管
40
+ - en.netlify.blog.sinzmise.top #Netlify托管
41
+
42
+ - search: \.html$
43
+ header:
44
+ Content-Type: text/html;charset=UTF-8 #修复标头
45
+
46
+ - search: _
47
+ action: fetch
48
+ fetch:
49
+ status: 200
50
+ engine: classic
51
+ preflight: false
52
+ timeout: 5000
53
+
54
+ - search: (^4|^5)
55
+ searchin: status
56
+ action: return
57
+ return:
58
+ body: The GateWay is down!This Page is provided by ClientWorker!
59
+ status: 503