馃悰 BUG: Pages header response differences - prod vs local differences #1001
Labels
bug
Something that isn't working
pages:validated
A validated Pages issue
pages
Relating to Pages
pages-shared
Solved by sharing code between Wrangler & production
What version of
Wrangler
are you using?2.0.5
What operating system are you using?
Windows 10
Describe the Bug
content-type
In local, if you request a file with an unrecognised mime type via
env.ASSETS.fetch
ornext
, you'll get a header ofcontent-type: application/octet-stream
.In production, the header is omitted entirely.
An example of this is a file like
image.jxl
, sincejxl
isn't in the mime-db yet.etag
This header is returned in prod. Not in dev.
Additional headers
In prod, you also get the following:
Whereas in dev, you only get
content-type
.Missing headers
In both prod and dev, the
content-length
header is missing. This would be an incredibly nice addition for my pages pluginpages-plugin-asset-negotiation
so I could determine the smallest file without having to buffer it into memory.The text was updated successfully, but these errors were encountered: