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
Hi, I can't figure out how to use it with useAsyncData composable.
As I know, when we use useAsyncData, to prevent duplicated requests (on server and client), NUXT passes received data in payload in HTML (script tag with NUXT data). But the service worker caches the HTML page, so it caches the payload too. I added my /api/ calls to navigateFallbackDenylist, but still on every page refresh I'm receiving a page with old data. I can receive new data only on client-side navigation, e.g. if I go to another page and then come back to the previous one.
How can I handle this problem to always receive fresh data on page refresh?
The text was updated successfully, but these errors were encountered:
Hi, I can't figure out how to use it with useAsyncData composable.
As I know, when we use useAsyncData, to prevent duplicated requests (on server and client), NUXT passes received data in payload in HTML (script tag with NUXT data). But the service worker caches the HTML page, so it caches the payload too. I added my /api/ calls to
navigateFallbackDenylist
, but still on every page refresh I'm receiving a page with old data. I can receive new data only on client-side navigation, e.g. if I go to another page and then come back to the previous one.How can I handle this problem to always receive fresh data on page refresh?
The text was updated successfully, but these errors were encountered: