0👍
Workbox’s RegExp
routes will only match cross-origin requests if the pattern provided matches starting with the first character of the URL. There are more details about this behavior in the documentation.
urlPattern
actually does support the same callback-based approached mentioned elsewhere in the docs, and I think that ends up being clearer than RegExp
s for most use cases:
new WorkboxPlugin.GenerateSW({
runtimeCaching: [{
handler: 'StaleWhileRevalidate',
method: 'GET',
urlPattern: ({ request }) => request.destination === 'script',
options: {
cacheName: 'javascript'
}
}]
})]
- [Vuejs]-Laravel 8 Inertia Jetstream website render blank
- [Vuejs]-How to use v-else statment in the v-for loop in Vuejs?
Source:stackexchange.com