/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-cacheablestatuscode-5e8711487120-cacheablestatuscodes-number-s0283-c0000.md
cacheableStatusCodes: `number[]` - hono-docs
cacheableStatusCodes: number[] Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt cacheablestatuscod...
cacheableStatusCodes: number[]
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#cacheablestatuscodes-number
Summary
An array of status codes that should be cached. The default is [200]. Use this option to cache responses with specific status codes. ```ts app.get( '*', cache({ cacheName: 'my-app', cacheControl: 'max-age=3600', cacheableStatusCodes: [...
Content
An array of status codes that should be cached. The default is [200]. Use this option to cache responses with specific status codes.
app.get(
'*',
cache({
cacheName: 'my-app',
cacheControl: 'max-age=3600',
cacheableStatusCodes: [200, 404, 412],
})
)