/Knowledge/sources/honojs__hono/llms-full/best-practices-head-request-best-practices-performance-considerations--5293383d4d60.md
Best Practices: HEAD Request Best Practices > Performance Considerati...
Best Practices: HEAD Request Best Practices Performance Considerations Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.d...
Best Practices: HEAD Request Best Practices > Performance Considerations
Source evidence: /Sources/honojs__hono/provenance.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
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#performance-considerations",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Best Practices > HEAD Request Best Practices > Performance Considerations",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 85,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Best Practices: HEAD Request Best Practices > Performance Considerations",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}