Description
Add Hono's etag() middleware to the generated project templates for automatic HTTP caching support via ETag headers.
Why
ETags allow clients to make conditional requests, reducing bandwidth and improving performance for frequently-polled endpoints. Hono has a built-in ETag middleware that makes this trivial to include from project creation.
Acceptance Criteria
Implementation
import { etag } from 'hono/etag';
app.use('*', etag());
Description
Add Hono's
etag()middleware to the generated project templates for automatic HTTP caching support via ETag headers.Why
ETags allow clients to make conditional requests, reducing bandwidth and improving performance for frequently-polled endpoints. Hono has a built-in ETag middleware that makes this trivial to include from project creation.
Acceptance Criteria
etag()middleware to both Cloudflare Workers and Node.js templates insetup-project.shhono/etagImplementation