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

bug: write json files to s3 with content type application/json #1390

Open
jgadling opened this issue Dec 11, 2024 · 0 comments
Open

bug: write json files to s3 with content type application/json #1390

jgadling opened this issue Dec 11, 2024 · 0 comments
Assignees
Labels
backend bug Something isn't working

Comments

@jgadling
Copy link
Contributor

jgadling commented Dec 11, 2024

Right now when we try to load JSON files from our bucket in a web browser, they're downloaded instead of being displayed in a browser. This makes debugging some portal features pretty difficult for the backend (and maybe even the frontend!) team.

This is happening because cloudfront is returning content-type: binary/octet-stream headers when it should be returning content-type: application/json headers for json files

We can configure CloudFront with a behavior to always return the correct content type for files with a .json extension:
https://stackoverflow.com/questions/37307132/add-content-type-for-specific-file-types-in-amazon-cloudfront

@jgadling jgadling added bug Something isn't working backend labels Dec 11, 2024
@jgadling jgadling changed the title feat: write json files to s3 with content type application/json bug: write json files to s3 with content type application/json Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants