nuxt-ssr-cache icon indicating copy to clipboard operation
nuxt-ssr-cache copied to clipboard

Pages section is still required if key function is provided

Open ludwis opened this issue 2 years ago • 0 comments

key function comment doc says:

// custom function to return cache key, when used previous
// properties (useHostPrefix, pages) are ignored.

That is not true, if pages is not set with at least one element, cache is not initialiazed at all due the if statement: https://github.com/arash16/nuxt-ssr-cache/blob/master/src/middleware.js#L34

ludwis avatar Sep 22 '22 10:09 ludwis