nuxt / http

Universal HTTP Module for Nuxt.js
https://http.nuxtjs.org
MIT License
229 stars 51 forks source link

Cache option #142

Open DragonWhisperer opened 4 years ago

DragonWhisperer commented 4 years ago

Is there a way to cache get requests like axios-extensions?

atinux commented 4 years ago

Hi @DragonWhisperer

I believe you can use the the hooks in order to do this: https://http.nuxtjs.org/hooks

Also see https://github.com/sindresorhus/ky#hooksbeforerequest

pi0 commented 4 years ago

Since we are migrating to a pure fetch implementation, worth checking out (https://github.com/npm/make-fetch-happen) for Node.js cache :)