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

Allow serving compressed SVG images #42407

Closed
wants to merge 8 commits into from

Conversation

ledermann
Copy link
Contributor

@ledermann ledermann commented Jun 6, 2021

This adds image/svg+xml to the compressible content types of ActionDispatch::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 from ActionDispatch::Static. This PR fixes this, so the compressed file is served if present.

@rails-bot rails-bot bot added the actionpack label Jun 6, 2021
This adds `image/svg+xml` to the compressible content types
of ActionDispatch::Static
@p8 p8 added the ready PRs ready to merge label Jul 26, 2021
@rails-bot
Copy link

rails-bot bot commented Dec 27, 2021

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.
Thank you for your contributions.

@rails-bot rails-bot bot added the stale label Dec 27, 2021
@rails-bot rails-bot bot closed this Jan 3, 2022
@flavorjones flavorjones reopened this Jan 4, 2022
@rails-bot rails-bot bot removed the stale label Jan 4, 2022
@rails-bot
Copy link

rails-bot bot commented Apr 4, 2022

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.
Thank you for your contributions.

@rails-bot rails-bot bot added the stale label Apr 4, 2022
@rails-bot rails-bot bot closed this Apr 11, 2022
@n-studio
Copy link

Who should we ping to reopen this PR?

@flavorjones flavorjones reopened this Dec 14, 2023
@rails-bot rails-bot bot removed the stale label Dec 14, 2023
@flavorjones
Copy link
Member

I'm going to rebase and re-submit this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actionpack ready PRs ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants