Skip to content

Commit 89693b5

Browse files
committed
disable CDN cache
1 parent 318355a commit 89693b5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/utils/docs.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ export const fetchFile = createServerFn({ method: 'GET' })
100100
throw notFound()
101101
}
102102

103-
// Cache for 5 minutes on shared cache
104-
// Revalidate in the background
105-
setHeader('Cache-Control', 'public, max-age=0, must-revalidate')
106-
setHeader(
107-
'CDN-Cache-Control',
108-
'max-age=300, stale-while-revalidate=300, durable'
109-
)
103+
// // Cache for 5 minutes on shared cache
104+
// // Revalidate in the background
105+
// setHeader('Cache-Control', 'public, max-age=0, must-revalidate')
106+
// setHeader(
107+
// 'CDN-Cache-Control',
108+
// 'max-age=300, stale-while-revalidate=300, durable'
109+
// )
110110

111111
return file
112112
})

0 commit comments

Comments
 (0)