2.8.0 • Published 10 months ago

@vue-storefront/http-cache v2.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Nuxt Cache Control Module

This module handles adding http-cache header to document after render for caching capabilities

How to install

Add dependendy:

yarn add @vue-storefront/http-cache

Add it to modules in your nuxt.config.js:

['@vue-storefront/http-cache/nuxt']

Configuration details

default

This property allows you do override default value of http-cache header which is initially set to max-age=60

['@vue-storefront/http-cache/nuxt', {
  default: 'max-age=120'
}]

matchRoute

Customize http-cache values for selected routes. you can use * for a wildcard. To remove http-cache header use none value.

['@vue-storefront/http-cache/nuxt', {
  matchRoute: {
    '/': 'max-age=240',
    '/p/*': 'max-age=360',
    '/c/*': 'none'
  }
}]
2.8.0

10 months ago

2.8.0-c.1

1 year ago

2.7.4

1 year ago

2.7.3

1 year ago

2.7.5

1 year ago

2.7.2

2 years ago

2.7.0

2 years ago

2.7.1

2 years ago

2.6.0

2 years ago

2.5.13

2 years ago

2.5.12

2 years ago

2.5.7

2 years ago