Skip to content

How can static assets be cached? #27169

Answered by manniL
dbzx10299 asked this question in Questions
May 11, 2024 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

More or less like:

export default defineNuxtConfig({
  routeRules: {
    '/_nuxt/**': {
        headers: {
          'cache-control': 'whatever-you-want-here'
        }
    }
  }
})

Related: #15465

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@dbzx10299
Comment options

@manniL
Comment options

Answer selected by dbzx10299
@dbzx10299
Comment options

@dbzx10299
Comment options

@manniL
Comment options

@dbzx10299
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants