sinzmise-cetastories-en 2.0.0-1732432470702 → 2.0.0-1732434744332

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,36 @@ 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: tk\.pl\.blog\.sinzmise\.top
37
+ action: skip
38
+ - search: _
39
+ replace:
40
+ - _ #保留原始请求
41
+ - en.vercel.blog.sinzmise.top #Vercel托管
42
+
43
+ - search: \.html$
44
+ header:
45
+ Content-Type: text/html;charset=UTF-8 #修复标头
46
+
47
+ - search: _
48
+ action: fetch
49
+ fetch:
50
+ status: 200
51
+ engine: classic
52
+ preflight: false
53
+ timeout: 5000
54
+
55
+ - search: (^4|^5)
56
+ searchin: status
57
+ action: return
58
+ return:
59
+ body: The GateWay is down!This Page is provided by ClientWorker!
60
+ status: 503