/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-onfound-61f99bc1e58a-onfound-s0416-c0000.md
`onFound` - hono-docs
onFound Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt onfound Summary You can specify handling...
onFound
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#onfound
Summary
You can specify handling when the requested file is found with onFound: ts app.get( '/static/*', serveStatic({ // ... onFound: (_path, c) => { c.header('Cache-Control', `public, immutable, max-age=31536000`) }, }) )
Content
You can specify handling when the requested file is found with onFound:
app.get(
'/static/*',
serveStatic({
// ...
onFound: (_path, c) => {
c.header('Cache-Control', `public, immutable, max-age=31536000`)
},
})
)