0

我正在尝试使用 Workbox 为 webdav 请求实现服务工作者。但是我无法缓存那些请求方法为 PROPFIND 的请求。

workbox.routing.registerRoute(
new RegExp('http://xxxx/remote.php/webdav/(.*)'),
workbox.strategies.cacheFirst({
    plugins: [
        new workbox.cacheableResponse.Plugin({
            statuses: [0, 200]
        })
    ]
  })
);

当我在缓存存储中查找缓存请求时,它们没有被缓存。那么如何注册这些路由并使用 Service Worker 缓存它们的响应呢?

4

0 回答 0