You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using vite-plugin-pwa with my React.js, Typescript, and SWC app. I've noticed in the dev tools it doesn't cache my API requests until the second reload. I tried a solution from this link (from StackOverflow) but it didn't help. I implemented this with:
workbox: {clientsClaim: true,skipWaiting: true}
but it still caches the API response on the second reload. I also tried dns-prefetch and preconnect (according to the official documentation) with the API host but it had no effect. Is there any workaround for that, I'm using the GenerateSW method.
The text was updated successfully, but these errors were encountered:
I'm using
vite-plugin-pwa
with myReact.js
,Typescript
, andSWC
app. I've noticed in the dev tools it doesn't cache my API requests until the second reload. I tried a solution from this link (from StackOverflow) but it didn't help. I implemented this with:but it still caches the API response on the second reload. I also tried
dns-prefetch
andpreconnect
(according to the official documentation) with the API host but it had no effect. Is there any workaround for that, I'm using theGenerateSW
method.The text was updated successfully, but these errors were encountered: