Skip to content

Commit

Permalink
chore: use memory cache for pages
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 1, 2024
1 parent 68a0475 commit e6d6488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ export default defineNuxtConfig({
'/': { prerender: true },
'/**': {
cache: {
base: 'pagespeed',
swr: true,
maxAge: 60,
staleMaxAge: 60,
}
},
'/api/**': {
cache: {
base: 'pagespeed',
maxAge: 60 * 60,
staleMaxAge: 24 * 60 * 60,
}
Expand Down

0 comments on commit e6d6488

Please sign in to comment.