Static GitHub Issues

[2554] How to properly set Document's cache-related headers?

prev: Redirect error in spa mode.
next: service-worker.js not found

Hi, I'm wondering how to set the cache-related response headers for my pages? Such headers are:

  • Cache-Control
  • Expires
  • Pragma
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2221">#c2221</a>)</em></sub></div>