arash16 / nuxt-ssr-cache

Cache middleware for nuxt's SSR rendering.
MIT License
295 stars 64 forks source link

Why created, serverprefetch still getting called ? #34

Open brightchip opened 4 years ago

brightchip commented 4 years ago

nuxt.config.js ` modules: [ 'nuxt-ssr-cache', '@nuxtjs/device', '@nuxtjs/style-resources', '@nuxtjs/apollo', 'vue-social-sharing/nuxt' ],

cache: {
    useHostPrefix: false,
    pages: [
        // these are prefixes of pages that need to be cached
        // if you want to cache all pages, just include '/'
        '/',
    ],

    store: {
        type: 'memory',
        max: 100,
        // number of seconds to store this page in cache
        ttl: 60,
    },
}, 

` And the console still print the logs from created and so on image