http icon indicating copy to clipboard operation
http copied to clipboard

Cache option

Open DragonWhisperer opened this issue 4 years ago • 2 comments

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

DragonWhisperer avatar Oct 19 '20 11:10 DragonWhisperer

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

atinux avatar Oct 22 '20 12:10 atinux

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

pi0 avatar Oct 28 '20 14:10 pi0