Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: opt-in of Content-Type header on /contents endpoint #1818

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

aleortega
Copy link
Contributor

This PR changes the GET /content/contents endpoint to check a query-string param instead of a Header to decide whether it should calculate a content-type or return the default one used by the sync.

This is a fix since CDNs caches requests based on URL path and does not acknowledge headers while doing so.

@aleortega aleortega force-pushed the fix/optin-of-contents-type branch from fb73796 to 21d3b8f Compare October 21, 2024 17:31
@aleortega aleortega merged commit cd789bc into main Oct 21, 2024
5 checks passed
@aleortega aleortega deleted the fix/optin-of-contents-type branch October 21, 2024 17:47
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