当我使用BroadcastUpdatePlugin(workbox-broadcast-update)时出现错误

问题描述 投票:0回答:1

我想在我的应用程序中使用BroadcastUpdatePlugin(workbox-broadcast-update),但出现类似这样的错误:

enter image description here

我的路线:

registerRoute(
        /my regexp/,
        new StaleWhileRevalidate({
            plugins: [
                new BroadcastUpdatePlugin({
                    headersToCheck: ['etag']
                }),
            ],
        })
    );

感谢您的帮助。>>

我想在我的应用程序中使用BroadcastUpdatePlugin(workbox-broadcast-update),但出现类似以下错误:我的路线:registerRoute(/ my regexp /,new ...

workbox
1个回答
0
投票
似乎响应中没有etag标头。您可以在开发工具中检查请求和响应标头。
© www.soinside.com 2019 - 2024. All rights reserved.