/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-performance-conside-5cf1f25ddbd4-performance-considerations-s0085-c0000.md
Performance Considerations - hono-docs
Performance Considerations Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt performance considerat...
Performance Considerations
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#performance-considerations
Summary
- Avoid expensive operations in GET handlers if you expect many HEAD requests: Use middleware to detect HEAD and skip body generation - Cache headers work identically: HEAD responses respect the same caching rules as GET - Midd...
Content
- Avoid expensive operations in GET handlers if you expect many HEAD requests: Use middleware to detect HEAD and skip body generation
- Cache headers work identically: HEAD responses respect the same caching rules as GET
- Middleware compatibility: Most middleware works with HEAD, but body-processing middleware (like compression) automatically skips HEAD requests