You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Avoid expensive operations in GET handlers if you expect many HEAD requests**: Use middleware to detect HEAD and skip body generation
176
176
-**Cache headers work identically**: HEAD responses respect the same caching rules as GET
177
-
-**Middleware compatibility**: Most middleware works with HEAD, but body-processing middleware (like compression) automatically skips HEAD requests [2](#2-1)
177
+
-**Middleware compatibility**: Most middleware works with HEAD, but body-processing middleware (like compression) automatically skips HEAD requests [2](#2-1)
@@ -203,30 +205,36 @@ If you're upgrading from Hono v3, remove any `app.head()` routes as they're no l
203
205
- If you need completely different logic for HEAD vs GET, consider using different endpoints rather than trying to override the framework's HEAD handling
204
206
205
207
Wiki pages you might want to explore:
208
+
206
209
-[Hono Application Class and HonoBase (honojs/hono)](/wiki/honojs/hono#2.1)
0 commit comments