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
Allow serving compressed SVG images #42407
Conversation
This adds `image/svg+xml` to the compressible content types of ActionDispatch::Static
3617fe0
to
f47c5ad
Compare
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Who should we ping to reopen this PR? |
I'm going to rebase and re-submit this. |
This adds
image/svg+xml
to the compressible content types ofActionDispatch::Static
so GZIP or Brotli can be used.Summary
The Webpacker gem creates compressed variants (
.gz
and.br
) of SVG images, but they are currently not served fromActionDispatch::Static
. This PR fixes this, so the compressed file is served if present.