arash16 / nuxt-ssr-cache

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

Feature: cache key control #8

Closed gendalf closed 5 years ago

gendalf commented 5 years ago

How about to add some function/module in nuxt config, to have ability control cache key and global version without rebuild app.

For examples:

  1. Caching by user, cookie session key as additional cache key
  2. Caching by app view settings stored in cookies (mobile/desktop, custom layouts, i18n etc)
  3. Flush cache if some global data change time point from redis or etc, is grater than cache time
arash16 commented 5 years ago

@gendalf done.