MCPcopy
hub / github.com/github/docs / defaultCacheControl

Function defaultCacheControl

middleware/cache-control.js:67–70  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

65// A general default configuration that is useful to almost all responses
66// that can be cached.
67export function defaultCacheControl(res) {
68 defaultCDNCacheControl(res)
69 defaultBrowserCacheControl(res)
70}
71
72// Vary on language when needed
73// x-user-language is a custom request header derived from req.cookie:user_language

Callers 10

fastHeadFunction · 0.90
anchor-redirect.jsFile · 0.90
categoriesForSupportFunction · 0.90
trailingSlashesFunction · 0.90
renderPageFunction · 0.90
dynamicAssetsFunction · 0.90
webhooks.jsFile · 0.90
handleRedirectsFunction · 0.90
languageCodeRedirectsFunction · 0.90
languageCacheControlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected