Skip to content

cache support for useFetch/useAsyncData #15445

@lucassimines

Description

@lucassimines

Environment


  • Operating System: Darwin
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.14-27802701.2f53495
  • Nitro Version: 0.6.2-27796963.837f894
  • Package Manager: npm@8.8.0
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-ccqtvp?file=pages%2Fabout.vue,pages%2Findex.vue,package.json

As you can see, on rc.14 edge if you click "Go to about page" then "Go to home", you will see that the data will be fetched again.
If you change to rc.13, the data won't be fetched again, loading from cache.

Describe the bug

Everytime useFetch is being called, it ma dke a new request, it is not checking for the fetched cached data, as it used to be working by rc.13

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions