Augustin Sorel
Explore posts from serversserver static file + caching
Hey guys,
I am serving a static folder called public and it's all working well, I can access my files, eg styles.css. Here is the code for it:
However I didn't realize that hono wasn't caching the assets in
/public
by default. Is there any way to tell hono to cache that directory ?15 replies
Error per route
Hello everyone, this is a very basic question but I couldn't find any help online.
I was just wondering if it was possible to have any error handling callback per route.
For example with this code, how would you handle this error only for this route ?
I know I can use .onError but that would be global right ?
Any help is very much appricated 🙌
7 replies