Skip to content

Commit cb1b4a4

Browse files
authored
feat(i18n): change default cache for /lunaria/status.json (#1465)
1 parent 5ffed03 commit cb1b4a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nuxt.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@ export default defineNuxtConfig({
158158
'/_v/view': { proxy: 'https://npmx.dev/_vercel/insights/view' },
159159
'/_v/event': { proxy: 'https://npmx.dev/_vercel/insights/event' },
160160
'/_v/session': { proxy: 'https://npmx.dev/_vercel/insights/session' },
161+
// lunaria status.json
162+
'/lunaria/status.json': {
163+
headers: {
164+
'Cache-Control': 'public, max-age=0, must-revalidate',
165+
},
166+
},
161167
},
162168

163169
experimental: {

0 commit comments

Comments
 (0)