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

Ensure dockerfile serves jsonp with correct MIME type #1100

Merged

Conversation

Jaifroid
Copy link
Member

@Jaifroid Jaifroid commented Sep 6, 2023

Should partially fix #1099 for the GHCR container.

@Jaifroid Jaifroid self-assigned this Sep 6, 2023
@Jaifroid Jaifroid added build Code relating to building, publishing, or maintaining the app bug-non-critical For bugs that it would be nice to fix rather than critical to fix labels Sep 6, 2023
@Jaifroid Jaifroid added this to the v3.10 milestone Sep 6, 2023
@Jaifroid
Copy link
Member Author

Jaifroid commented Sep 6, 2023

From web searches, it appears it is not possible to change the MIME type of files on gh-pages, though it is possible to contribute a changed MIME type at https://github.com/jshttp/mime-db#adding-custom-media-types. However, the process looks pretty complicated, and if it ever breaks on gh-pages, we can simply rename the files to .jsonp.js.

@Jaifroid
Copy link
Member Author

Jaifroid commented Sep 6, 2023

There's no real way to know if this one-liner will work until we try it on the live container as part of a release, so will need to be vigilant at release time. @kelson42 As you originally set up our dockerfile and are fluent in Linux, could you take a look at this one-liner?

@Jaifroid
Copy link
Member Author

Jaifroid commented Sep 9, 2023

We just have to test this empirically.

@Jaifroid Jaifroid merged commit 368868f into main Sep 9, 2023
9 checks passed
@Jaifroid Jaifroid deleted the Ensure-dockerfile-serves-jsonp-files-with-correct-MIME-type branch September 9, 2023 09:59
@Jaifroid Jaifroid mentioned this pull request Sep 10, 2023
31 tasks
Jaifroid added a commit that referenced this pull request Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-non-critical For bugs that it would be nice to fix rather than critical to fix build Code relating to building, publishing, or maintaining the app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Translation strings delivered with wrong MIME type at least on GitHub server - check if also on GHCR container
1 participant