Skip to content

Use lowercase header names when reading expiry#13626

Closed
nab0y4enko wants to merge 1 commit intomapbox:mainfrom
nab0y4enko:issues-13625-fix-for-cache-control-and-expires-headers
Closed

Use lowercase header names when reading expiry#13626
nab0y4enko wants to merge 1 commit intomapbox:mainfrom
nab0y4enko:issues-13625-fix-for-cache-control-and-expires-headers

Conversation

@nab0y4enko
Copy link
Contributor

@nab0y4enko nab0y4enko commented Feb 18, 2026

Fix for the issue 13625

Normalize header lookups to lowercase in getExpiryDataFromHeaders so 'cache-control' and 'expires' are retrieved reliably from Headers/Map implementations that store lowercase keys. This prevents previously returning undefined when headers used lowercase keys.

Normalize header lookups to lowercase in getExpiryDataFromHeaders so 'cache-control' and 'expires' are retrieved reliably from Headers/Map implementations that store lowercase keys. This prevents previously returning undefined when headers used lowercase keys.
@nab0y4enko nab0y4enko requested a review from a team as a code owner February 18, 2026 18:18
@CLAassistant
Copy link

CLAassistant commented Feb 18, 2026

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link

Hey, @nab0y4enko 👋 Thanks for your contribution to Mapbox GL JS!

Important: This repository does not accept direct merges. All changes go through our internal review process.

What happens next:

  1. A team member will review your PR here first
  2. If it looks good, they will import it to our internal repository for further review
  3. If approved, changes will be synced back here via our release process

Please respond to any review comments on this PR. For more details, see CONTRIBUTING.md.

@stepankuzmin
Copy link
Contributor

Wow, good catch, thanks!

mapbox-github-ci-writer-public-1 bot pushed a commit that referenced this pull request Feb 19, 2026
)

GitOrigin-RevId: ac9bf77bfb3f16446ecdd8f16e293f8dedc0ed08
@stepankuzmin
Copy link
Contributor

Merged as de053a3, thanks again!

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.

3 participants

Comments