You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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 returningcontent-type: application/json
headers for json filesWe 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
The text was updated successfully, but these errors were encountered: