Skip to content

Commit 76e5f4e

Browse files
committed
feat: ✨ Set cache-control maxAge on emojis to 1 year
1 parent 6b6d1d4 commit 76e5f4e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nuxt.config.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,13 @@ export default defineNuxtConfig({
247247
brotli: false,
248248
gzip: false,
249249
},
250-
routeRules: {
251-
"/emojis/**": {
252-
headers: {
253-
"Cache-Control": "public, max-age=31536000, immutable",
254-
},
250+
publicAssets: [
251+
{
252+
baseURL: "emojis",
253+
dir: "public/emojis",
254+
maxAge: 31536000,
255255
},
256-
},
256+
],
257257
},
258258
schemaOrg: {
259259
enabled: false,

0 commit comments

Comments
 (0)