Skip to content

Conversation

@7ttp
Copy link

@7ttp 7ttp commented Dec 31, 2025

Problem

The /object/info endpoint was using the object's Cache-Control metadata (e.g., max-age=3600) as the HTTP response header. This caused browsers/CDNs to cache the info response, returning stale metadata after upserts.

Solution

Changed the Cache-Control header to no-cache so clients always revalidate with the server before using cached responses.

Changes

  • src/storage/renderer/info.ts: Use 'no-cache' instead of data.metadata.cacheControl

Closes #728

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.

/object/info is cached and the cache not busted after upserting

1 participant