-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Issue Description
When running a Remix application with Hono and Cloudflare Workers, an error occurs when modifying headers.
Environment
- Wrangler: v3.84.1
- @remix-run/cloudflare: 2.13.1
- @remix-run/react: 2.13.1
- hono: 4.6.8
- remix-hono: 0.0.16
Steps to Reproduce
- Set up a Remix project with Hono and Cloudflare Workers
- Implement static asset handling using the
staticAssets
function - Run the application using Wrangler
Error Message
TypeError: Can't modify immutable headers.
Root Cause
The error occurs because the staticAssets
middleware attempts to modify the if-none-match
header directly on the immutable Request
object. In newer versions of the runtime or dependencies, this operation is not allowed on immutable headers.
cwagner22, andrevandal and Sanokei
Metadata
Metadata
Assignees
Labels
No labels