Repository navigation
Conversation
…cept it Objects stored with Content-Encoding (e.g. source/metadata-catalog's brotli-compressed catalog.jsonl) reached every client decoded, header dropped: Cloudflare decodes a Worker subrequest's encoded body unless the subrequest sends Accept-Encoding. Pins multistore to developmentseed/multistore#165, which sends it on reads, until that ships. Adds a stub product and integration test for the stored-encoding read, and a production-only deploy check against Cloudflare's network, where wrangler dev can't reproduce the bug. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Claude finished @alukach's task in 13s —— View job ✅ No blocking issues — safe to merge. I reviewed the diff only. I didn't build it or run the tests.
Non-blocking notes:
Simplify (ponytail)
💰 Estimated review cost: $0.09 · 0m12s · 4 turns |
|
🚀 Latest commit deployed to https://source-data-proxy-pr-264.source-coop.workers.dev
|
4 of 5 tasks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What I'm changing
source/metadata-catalog/catalog.jsonlis now published brotli-compressed: 789 KB stored withContent-Encoding: br, against 6.1 MB raw. Through data.source.coop, every client gets it decoded instead, with noContent-Encodingand a weak ETag, even clients that sendAccept-Encoding: br. Range requests return raw brotli slices with no header.Cause: Cloudflare decodes a Worker subrequest's encoded body unless the subrequest itself sends
Accept-Encoding, and multistore doesn't send one. developmentseed/multistore#165 fixes that. It includes edge measurements from a throwaway Worker onsource-coop.workers.dev: with the header,brclients get the stored 788,699 bytes withContent-Encoding: br, and other clients get it decoded by the edge.How I did it
Cargo.toml/Cargo.lock: pin all five multistore crates to the feat: make STS max session TTL configurable via env var #165 branch (e8851a2) until it's released; then dropgit/branch.version = "0.8.0"is kept so that swap is a one-word change.tests/stub_api.py: addsource/metadata-catalogas a public product on the existingaws-opendata-us-west-2connection, so the integration suite can read the real brotli object.tests/test_integration.py:test_stored_content_encoding_passes_throughasks forbrand assertsContent-Encoding: brplus byte-for-byte equality with the S3 object.wrangler devpasses encoded bodies through with or without the fix, so this guards the proxy path, not the Cloudflare-only behaviour..github/workflows/deploy.yml: a production-only step after the smoke test asserts the catalog comes back withContent-Encoding: brfor a br-accepting client. It's the only check that runs on Cloudflare's real network.Test plan
cargo test: all passcargo check --target wasm32-unknown-unknownwith the pinned multistorewrangler dev):tests/test_integration.py27 passed, including the new testcontent-encoding: <none>) and passes against the probe Worker with the fix (br)🤖 Generated with Claude Code