-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Set headers for URLs proxied from Cesium ion #13004
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
Conversation
|
Thank you for the pull request, @ggetz! ✅ We can confirm we have a CLA on file for you. |
|
@lukemckinstry Could you please review? This may make sense to merge before #13001. |
|
The Google
The other assets look ok |
@lukemckinstry Thanks for catching that! This sandcastle example exposes an issue with how the cached endpoint responses were working. I have a fix and will also add unit tests. The caching issue came up because |
This comment was marked as resolved.
This comment was marked as resolved.
lukemckinstry
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The IonResource additional Cesium client request headers and the retryCallback refactor look good 👍
|
Thanks for the review @lukemckinstry! I just pushed up the caching fix and unit test updates. Assuming the updates look good, this should be good to merge. |
Description
This PR tidies a bit of handling for imagery assets proxied via a Cesium ion asset, including Google 2D Imagery and shortly, Azure Imagery. It ensures we are including the
X-Cesium-Client-*headers that are typically sent to ion URLs.Google2DImageryProviderandAzure2DImageryProviderso that their logic is now isolated to one file:IonImageryProviderFactory.IonImageryProviderintoIonImageryProviderFactorybecause 1) The former file was getting big and unwieldy, but now 2) we can call the logic from other places without creating a circular dependency onIonImageryProvider, allowing us to simplifyGoogle2DImageryProvider.fromIonAssetIda bit.Issue number and link
Fixes #13000
Testing plan
assets.ion.cominclude theX-Cesium-ClientandX-Cesium-Client-Versionheaders.cesium.comurls) do not include these headers.IonImageryProvider.fromAssetIdproperly refreshes sessions.assets.ion.cominclude theX-Cesium-ClientandX-Cesium-Client-VersionheadersGoogle2DImageryProvider.fromIonAssetIdproperly refreshes sessions.assets.ion.cominclude theX-Cesium-ClientandX-Cesium-Client-VersionheadersAuthor checklist
CONTRIBUTORS.mdI have updatedThis should not affect users, so I did not updateCHANGES.mdwith a short summary of my changeCHANGES.md