How does Vite handle caching for OPTIONS requests? #613
Unanswered
BenedictLang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a caching config for an API GET request:
When moving to a live server, we get a fetch failure. Looking into the requests, the service worker seems to trigger the browser to make a preflight request. It sends a OPTIONS request.
Most caching strategies don't cache OPTIONS requests, especially in scenarios like CORS preflight checks, as they are preflight verifications and don't carry the data or response you'd typically cache.
Is that the case in VitePWA?
Beta Was this translation helpful? Give feedback.
All reactions