arash16/nuxt-ssr-cache

Only homepage caching

ozergul opened this issue · 5 comments

Hello
I want to cache only my home page that is "/"

How can I do this?

    pages: [
      // you can also pass a regular expression to test a path
      '/'
    ],

The code above is caching all pages.

// to cache only root route, use a regular expression
/^/$/

The author shows it in README.md

How can I see that the cache is working? Are there any logging?

I use it in my product , it actually works. but i don't know how to get this cache instance
maybe we should inject this page-cache into context
like context.$pageCache
then we can do 'get' ,'set','del',and log it

Hello
I want to cache only my home page that is "/"

How can I do this?

    pages: [
      // you can also pass a regular expression to test a path
      '/'
    ],

The code above is caching all pages.

what type of store you use? redis?

no, memory