Skip to content

feat: add ETag support middleware to templates - #81

Merged
PAMulligan merged 1 commit into
mainfrom
17-add-etag-support-middleware-to-templates
Apr 15, 2026
Merged

feat: add ETag support middleware to templates#81
PAMulligan merged 1 commit into
mainfrom
17-add-etag-support-middleware-to-templates

Conversation

@PAMulligan

Copy link
Copy Markdown
Contributor

Summary

  • Adds Hono's built-in etag() middleware to both Cloudflare Workers and Node.js project templates in setup-project.sh
  • Enables automatic HTTP caching via ETag headers for conditional requests out of the box
  • Import from hono/etag, applied before route handlers in both templates

Test plan

  • Run bash -n scripts/setup-project.sh — syntax check passes
  • Run ./scripts/setup-project.sh test-cf --cloudflare --dry-run — verify etag import and middleware in output
  • Run ./scripts/setup-project.sh test-node --node --dry-run — verify etag import and middleware in output
  • CI passes (ShellCheck, syntax validation)

Closes #17

🤖 Generated with Claude Code

Adds Hono's built-in etag() middleware to both project templates in
setup-project.sh, enabling automatic HTTP caching via ETag headers
for conditional requests out of the box.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@PAMulligan PAMulligan linked an issue Apr 15, 2026 that may be closed by this pull request
4 tasks
@github-actions github-actions Bot added the area: scripts Automation scripts label Apr 15, 2026
@PAMulligan PAMulligan self-assigned this Apr 15, 2026
@PAMulligan
PAMulligan merged commit f858fbe into main Apr 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: scripts Automation scripts

Projects

Development

Successfully merging this pull request may close these issues.

Add ETag support middleware to templates

1 participant