Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Range to Unsignable Headers #5

Closed
wants to merge 1 commit into from

Conversation

obezuk
Copy link
Contributor

@obezuk obezuk commented Nov 21, 2019

Developers using Cloudflare Workers (Service Workers running on our global edge network) rely on this library to sign requests to Amazon S3.

CDNs such as Cloudflare often manipulate or strip the Range Header to optimise/reduce the cost how content is pulled from S3. This behaviour is important because the Range header can take arbitrary, high-cardinality values. If CDNs don't do this then cache hit rates will be very poor leading to increased latency and cost fetching data directly from S3.

This pull request includes Range as an Unsignable Header so the signature can be used by a CDN to fetch the full object or normalised byte ranges, improving performance and reducing cost of serving content from S3.

@mhart
Copy link
Owner

mhart commented Nov 21, 2019

Awesome! Added in 69922c9

I don't have CI setup for this yet (the tests rely on puppeteer) so I had to run npm run build automatically and check that tests pass – but all good.

Thanks for the contribution!

@mhart mhart closed this Nov 21, 2019
@mhart mhart mentioned this pull request Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants