[](https://www.npmjs.com/package/@nuxtjs/component-cache) [](http
npm install @nuxtjs/component-cache> vue-server-renderer has built-in support for component-level caching.
> This module automatically adds a LRU cache to project.
@nuxtjs/component-cache dependency using yarn or npm to your project@nuxtjs/component-cache to modules section of nuxt.config.jsjs
{
modules: [
// Simple usage
'@nuxtjs/component-cache',
// With options
['@nuxtjs/component-cache', { maxAge: 1000 60 60 }],
]
}
`Options
See component-level caching for mor information.$3
- default: 10000$3
- default: 1000 60 15` (15 minutes)