mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
perf(nuxt): increase static asset maxAge to 1yr (#19335)
This commit is contained in:
parent
021ba4310e
commit
32f6cb27b7
@ -86,7 +86,7 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
|
||||
? { dir: resolve(nuxt.options.buildDir, 'dist/client') }
|
||||
: {
|
||||
dir: join(nuxt.options.buildDir, 'dist/client', nuxt.options.app.buildAssetsDir),
|
||||
maxAge: 30 * 24 * 60 * 60,
|
||||
maxAge: 31536000 /* 1 year */,
|
||||
baseURL: nuxt.options.app.buildAssetsDir
|
||||
},
|
||||
...nuxt.options._layers
|
||||
|
Loading…
Reference in New Issue
Block a user