Minimal reproduction for honojs/hono#4871.
When using cache() middleware on multiple routes, the log "Cache Middleware is not enabled because caches is not defined." is repeated for each route, because the factory function runs at route definition time.
bun install
bun run devThen open http://localhost:5173/ in your browser. The server terminal will show:
Cache Middleware is not enabled because caches is not defined.
Cache Middleware is not enabled because caches is not defined.
Cache Middleware is not enabled because caches is not defined.
The message appears 3 times (once per route using cache()).