Skip to content

Commit

Permalink
Enhance : Unification in services page
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-jagruti-a committed Jan 5, 2024
1 parent 8c81bea commit 6d13e3c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions nuxt-frontend/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -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}`,
},
},
},
},
});

0 comments on commit 6d13e3c

Please sign in to comment.