Skip to content

yuintei/hono-cache-log-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hono-cache-log-repro

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.

Reproduce

bun install
bun run dev

Then 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()).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors