Skip to content

Support JPEG Seadragon tile URLs - #980

Merged
lovasoa merged 2 commits into
masterfrom
ophir.lojkine/modern-proxy-user-agent
Aug 3, 2026
Merged

Support JPEG Seadragon tile URLs#980
lovasoa merged 2 commits into
masterfrom
ophir.lojkine/modern-proxy-user-agent

Conversation

@lovasoa

@lovasoa lovasoa commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Seadragon single-tile discovery recognized .jpg and .png, but not the equivalent .jpeg suffix.

Accept .jpeg in both automatic URL detection and metadata URL recovery. The proxy continues to forward the caller user agent unchanged.

Regression coverage automatically opens a .jpeg tile URL and resolves its DZI metadata. cd tests && npm test passes all 18 tests.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 3, 2026

Copy link
Copy Markdown

Deploying dezoomify with  Cloudflare Pages  Cloudflare Pages

Latest commit: 03989fd
Status: ✅  Deploy successful!
Preview URL: https://d649b28a.dezoomify.pages.dev
Branch Preview URL: https://ophir-lojkine-modern-proxy-u.dezoomify.pages.dev

View logs

@lovasoa lovasoa changed the title Use a modern user agent for proxy requests Support JPEG Seadragon tile URLs Aug 3, 2026
@lovasoa
lovasoa merged commit 895e690 into master Aug 3, 2026
3 checks passed
@lovasoa
lovasoa deleted the ophir.lojkine/modern-proxy-user-agent branch August 3, 2026 15:12

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 03989fd883

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread dezoomers/seadragon.js
/bibliotheques-specialisees\.paris\.fr\/ark/,
/nla\.gov\.au\/nla\.obj.*\/view$/,
/_files\/\d+\/\d+_\d+\.(?:jpg|png)$/,
/_files\/\d+\/\d+_\d+\.(?:jpe?g|png)$/,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Apply the advertised user-agent override in the proxy

When the caller supplies the old Chrome identity from the reported ADIF failure, functions/proxy.js:23 still forwards that identity upstream, so /proxy continues receiving the same 403 response. This change only adds .jpeg Seadragon discovery; update the shared proxy handler to send the modern user agent and cover that behavior with a proxy test.

AGENTS.md reference: AGENTS.md:L12-L12

Useful? React with 👍 / 👎.

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.

1 participant