Browse Source

视图解决json文件不会自动更新的问题

tags/v24.3
枫谷剑仙 3 years ago
parent
commit
e97f7e83b9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      service-worker.js

+ 1
- 0
service-worker.js View File

@@ -6473,6 +6473,7 @@ self.addEventListener('activate', function(event) {

self.addEventListener('fetch', function(event) {
const url = new URL(event.request.url);
url.search = "";
const baseUrl = new URL(".", location);
const path = url.pathname;
const relativePath = (url.origin + path).replace(baseUrl.origin + baseUrl.pathname, "");


Loading…
Cancel
Save