The Complete Guide to Data Fetching in Nuxt
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

Caching Responses with useFetch and useAsyncData in Nuxt

In this lesson, learn how to get complete control over cached data with the getCachedData option on useAsyncData and useFetch. This allows you to cache data based on a callback function where you could cache it client side indefinitely, only refresh it after a certain expiration time, or really handle it however you’d like.

Links