Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
deploy: cabb009
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenYFan committed Jul 13, 2022
1 parent 259ff99 commit d108b5e
Show file tree
Hide file tree
Showing 3 changed files with 387 additions and 218 deletions.
6 changes: 3 additions & 3 deletions autoupdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
setInterval(async () => {
await updateSW();
await updateConfig();
}, updateConfigDelay);
setInterval(async () => {
await updateSW();
}, updateSWDelay);
setInterval(async () => {
await updateConfig()
}, updateConfigDelay);
})(1000 * 60 * 60 * 12, 1000 * 60);
17 changes: 14 additions & 3 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ catch_rules: #转换规则


- search: _ #ClientWorker语法糖,匹配捕捉规则的路由
replace: docroot/clientworker@2.0.3/doc/docs/.vitepress/dist
replace: docroot/clientworker@2.1.0/doc/docs/.vitepress/dist


- search: ^https\:\/\/docroot
Expand All @@ -59,9 +59,14 @@ catch_rules: #转换规则

fetch:
status: 200
engine: classic
engine: parallel
preflight: false
timeout: 5000
cache:
expire: 1000*60
delay: 200
expired_delay: 500

#classic
#action: fetch-engine-status

Expand Down Expand Up @@ -89,16 +94,22 @@ catch_rules: #转换规则
action: fetch
fetch:
status: 200
engine: classic
engine: parallel
preflight: false
timeout: 5000
cache:
enable: true
expired_delay: 500
expire: 1000*60*60*24*7
delay: 150


- rule: .*
transform_rules:
- search: .*
action: fetch
fetch:
enable: true
engine: fetch
preflight: false

Expand Down
Loading

0 comments on commit d108b5e

Please sign in to comment.