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

Add File Type "image/svg+xml" for Compression #268

Open
wants to merge 1 commit into
base: D7
Choose a base branch
from

Conversation

deminy
Copy link
Contributor

@deminy deminy commented Jan 27, 2017

I noticed that Drupal 8 logos didn't show up properly. In Chrome following message shown up when trying to visit http://example.com/core/themes/bartik/logo.svg (here "example.com" is a Drupal 8 site)

This site can’t be reached
The webpage at http://example.com/core/themes/bartik/logo.svg might be temporarily down or it may have moved permanently to a new web address.
ERR_CONTENT_DECODING_FAILED

Similar issue happens in Firefox and Safari as well. However, from what I remember it didn't happen before, so I assume it probably happens only with latest Nginx and/or latest Drupal.

To fix it, I added type "image/svg+xml" for gzip compression.

@deminy deminy changed the title Add file type "image/svg+xml" for Compression Add File Type "image/svg+xml" for Compression Jan 27, 2017
@deminy
Copy link
Contributor Author

deminy commented Jan 27, 2017

Forgot to mention that my installation has Nginx module PageSpeed included. After the patch I also need to flush PageSpeed cache folder to make it work.

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

Successfully merging this pull request may close these issues.

1 participant