Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set ignoreVary for matching cache in ? #107

Open
bhcjohnnysiu opened this issue Dec 1, 2023 · 2 comments
Open

How to set ignoreVary for matching cache in ? #107

bhcjohnnysiu opened this issue Dec 1, 2023 · 2 comments

Comments

@bhcjohnnysiu
Copy link

How to set ignoreVary for matching cache in ?

@userquin
Copy link
Member

userquin commented Dec 1, 2023

check vite-pwa/sveltekit#65 (comment)

@bhcjohnnysiu
Copy link
Author

bhcjohnnysiu commented Dec 4, 2023

@userquin I tried adding the Workbox ignoreVary option, but that didn't help:

image

urlPattern: /^regexPattern$/,
handler: 'NetworkFirst',
options: {
cacheName: 'api',
expiration: {
maxEntries: 500,
maxAgeSeconds: 60 * 60 * 24 * 365 * 2,
matchOptions: {
ignoreVary: true
}
},
cacheableResponse: {
statuses: [0, 200]
}
}

Did i miss something ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants