getCacheHeaders() — supabase Function Reference
Architecture documentation for the getCacheHeaders() function in route.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 7ab7bec5_c180_6c80_9392_d55c77b2168e["getCacheHeaders()"] 45f64da6_d949_22b4_f6f8_853a312ea9ea["getResponseHeaders()"] 45f64da6_d949_22b4_f6f8_853a312ea9ea -->|calls| 7ab7bec5_c180_6c80_9392_d55c77b2168e style 7ab7bec5_c180_6c80_9392_d55c77b2168e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/app/api/graphql/route.ts lines 74–82
function getCacheHeaders(): Record<string, string> {
return {
/**
* Cache on CDN for 1 hour
* Serve stale content while revalidating for 5 minutes
*/
'Cache-Control': 'public, s-maxage=3600, stale-while-revalidate=300',
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getCacheHeaders() do?
getCacheHeaders() is a function in the supabase codebase.
What calls getCacheHeaders()?
getCacheHeaders() is called by 1 function(s): getResponseHeaders.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free