Skip to content

Conversation

neilberkman
Copy link
Contributor

@neilberkman neilberkman commented Jul 18, 2025

Closes #9

This PR introduces support for headers on IIIF image responses, allowing for better CDN and browser caching.

Changes

  • Adds a option to for a static cache header value.
  • Adds an option for dynamically determining the cache header based on the image identifier.
  • Implements the cache header logic for all image response types (buffered, file, and stream).
  • Includes a new test suite () with comprehensive coverage for the new functionality.
  • Updates the to document the new options with usage examples.

@dersmon dersmon merged commit 58f0d67 into dainst:main Jul 23, 2025
1 check passed
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.

Enable custom response headers for successful info or data requests

2 participants