Skip to content

Commit e009111

Browse files
committed
docs: drop isr rules from font pages
1 parent d7ae8c4 commit e009111

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

docs/nuxt.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ const familyFacets = ['weights', 'subsets', 'styles', 'provider']
5555
/** A day: a family's faces change when a provider republishes it, and a deployment resets this. */
5656
const DAY = 60 * 60 * 24
5757

58-
const familyPage = { expiration: DAY, allowQuery: familyFacets }
59-
6058
// The endpoint answers in a format as well, which the page does not ask about.
6159
const familyEntry = { expiration: DAY, allowQuery: [...familyFacets, 'formats'] }
6260

@@ -150,8 +148,7 @@ export default defineNuxtConfig({
150148
// Every API response points at the document that describes it.
151149
'/api/v1/**': { headers: { link: '</openapi.json>; rel="service-desc"; type="application/json"' } },
152150
'/api/v1/catalogue.css': { headers: { 'cache-control': 'public, max-age=3600, stale-while-revalidate=86400' } },
153-
'/fonts/**': { isr: familyPage },
154-
'/fonts/*/_payload.json': { isr: familyPage },
151+
'/fonts/**': { headers: { 'cache-control': `public, s-maxage=${DAY}, stale-while-revalidate=${DAY}` } },
155152
'/api/v1/fonts/*': { isr: familyEntry },
156153
},
157154
prerender: {

0 commit comments

Comments
 (0)