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 d8eadaf commit 09ef409
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions nuxt-frontend/nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
import { defineNuxtConfig } from "nuxt/config";
const yearInSeconds = 365 * 24 * 60 * 60; // 365 days * 24 hours * 60 minutes * 60 seconds

export default defineNuxtConfig({
app: {
head: {
Expand Down Expand Up @@ -34,5 +36,17 @@ export default defineNuxtConfig({
prerender: {
failOnError: false,
},
routeRules: {
"/img/**": {
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 09ef409

Please sign in to comment.