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

Commit

Permalink
deploy: 9e2a63b
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenYFan committed Jul 25, 2022
1 parent 19db8be commit f2dd4e8
Show file tree
Hide file tree
Showing 3 changed files with 4,880 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
location.reload();
}, 3000);
}, 5000);
navigator.serviceWorker.register('/cw.js?t=' + new Date().getTime()).then(async (registration) => {
navigator.serviceWorker.register('/cwown.js?t=' + new Date().getTime()).then(async (registration) => {
let trycount = 0;
changeType('ring')
const conf = () => {
Expand Down
13 changes: 12 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ catch_rules:
redirect:
url: https://google.com
status: 301

- search: \/time$
action: script
script:
name: gettime
skip: true
- search: \/timefunction$
action: script
script:
function: ()=>{return {fetched:true,response:new Response(new Date().toString())}}
skip: true

- search: \/([^\/.]+)$
action: redirect
Expand All @@ -35,7 +46,7 @@ catch_rules:


- search: _
replace: docroot/clientworker@2.6.0/doc/docs/.vitepress/dist
replace: docroot/clientworker@2.7.0-beta-1/doc/docs/.vitepress/dist


- search: ^https\:\/\/docroot
Expand Down
Loading

0 comments on commit f2dd4e8

Please sign in to comment.