Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/github/docs
/ makeLanguageSurrogateKey
Function
makeLanguageSurrogateKey
middleware/set-fastly-surrogate-key.js:38–43 ·
view source on GitHub ↗
(langCode = null)
Source
from the content-addressed store, hash-verified
36
}
37
38
export
function
makeLanguageSurrogateKey(langCode = null) {
39
if
(!langCode) {
40
return
'no-language'
41
}
42
return
`language:${langCode}`
43
}
Callers
5
anchor-redirect.js
File · 0.90
webhooks.js
File · 0.90
server.js
File · 0.90
setDefaultFastlySurrogateKey
Function · 0.85
setLanguageFastlySurrogateKey
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected