Skip to content

Conversation

@willnorris
Copy link
Owner

The httpcache package is intended only to be used in private caches, so it will cache responses marked private like normal. However, imageproxy is a shared cache, so these response should not be cached under normal circumstances. This change introduces a potentially breaking change to start respecting the private cache directive in responses.

This also adds a new -forceCache flag to ignore the private and no-store directives, and cache all responses regardless.

The httpcache package is intended only to be used in private caches, so
it will cache responses marked `private` like normal.  However,
imageproxy is a shared cache, so these response should not be cached
under normal circumstances.  This change introduces a potentially
breaking change to start respecting the `private` cache directive in
responses.

This also adds a new `-forceCache` flag to ignore the `private` and
`no-store` directives, and cache all responses regardless.
@willnorris willnorris merged commit 1ceba25 into main May 1, 2025
8 checks passed
@willnorris willnorris deleted the force-cache branch May 1, 2025 09:54
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.

2 participants