diff --git a/nuxt-frontend/nuxt.config.js b/nuxt-frontend/nuxt.config.js index 3274d5d6c..fe0c95801 100644 --- a/nuxt-frontend/nuxt.config.js +++ b/nuxt-frontend/nuxt.config.js @@ -8,6 +8,18 @@ export default defineNuxtConfig({ htmlAttrs: { lang: "en", }, + routeRules: { + "/assets/images/**": { + headers: { + "cache-control": `public,max-age=${yearInSeconds},s-maxage=${yearInSeconds}`, + }, + }, + "/_nuxt/**": { + headers: { + "cache-control": `public,max-age=${yearInSeconds},s-maxage=${yearInSeconds}`, + }, + }, + }, }, }, devtools: { enabled: true }, @@ -36,17 +48,5 @@ export default defineNuxtConfig({ prerender: { failOnError: false, }, - routeRules: { - "/assets/images/**": { - headers: { - "cache-control": `public,max-age=${yearInSeconds},s-maxage=${yearInSeconds}`, - }, - }, - "/_nuxt/**": { - headers: { - "cache-control": `public,max-age=${yearInSeconds},s-maxage=${yearInSeconds}`, - }, - }, - }, }, });