Skip to content

Commit d7ffd34

Browse files
committed
perf: cache versioned docs urls
1 parent 636a277 commit d7ffd34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nuxt.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ export default defineNuxtConfig({
100100
'/api/auth/**': { isr: false, cache: false },
101101
// infinite cache (versioned - doesn't change)
102102
'/code/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
103+
'/docs/:pkg/v/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
104+
'/docs/:scope/:pkg/v/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
103105
'/api/registry/docs/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
104106
'/api/registry/file/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
105107
'/api/registry/files/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },

0 commit comments

Comments
 (0)