Skip to content

Commit

Permalink
perf(nuxt): increase static asset maxAge to 1yr (#19335)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 28, 2023
1 parent 021ba43 commit 32f6cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/core/nitro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32f6cb2

Please sign in to comment.