mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 03:22:11 +00:00
fix: webpack config upgrate cross origin requests
This commit is contained in:
parent
091f94e8fd
commit
39ac3eb397
1 changed files with 15 additions and 1 deletions
|
|
@ -224,7 +224,21 @@ module.exports = (env, argv) => ({
|
||||||
new WorkboxPlugin.GenerateSW({
|
new WorkboxPlugin.GenerateSW({
|
||||||
maximumFileSizeToCacheInBytes: 20000000,
|
maximumFileSizeToCacheInBytes: 20000000,
|
||||||
clientsClaim: true,
|
clientsClaim: true,
|
||||||
skipWaiting: true
|
skipWaiting: true,
|
||||||
|
runtimeCaching: [
|
||||||
|
{
|
||||||
|
urlPattern: /^https:\/\/.*/,
|
||||||
|
handler: 'NetworkFirst',
|
||||||
|
options: {
|
||||||
|
cacheName: 'cross-origin-requests',
|
||||||
|
networkTimeoutSeconds: 10,
|
||||||
|
expiration: {
|
||||||
|
maxEntries: 200,
|
||||||
|
maxAgeSeconds: 60 * 60,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
}),
|
}),
|
||||||
new CopyWebpackPlugin({
|
new CopyWebpackPlugin({
|
||||||
patterns: [
|
patterns: [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue