Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pages section is still required if key function is provided #54

Open
ludwis opened this issue Sep 22, 2022 · 0 comments
Open

Pages section is still required if key function is provided #54

ludwis opened this issue Sep 22, 2022 · 0 comments

Comments

@ludwis
Copy link

ludwis commented Sep 22, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant