Last active
August 31, 2017 01:49
-
-
Save judges119/4d35b2d1801afe23c96d465b4a27984a to your computer and use it in GitHub Desktop.
Varnish - enable gzip on SVG files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in vcl_backend_response | |
if (beresp.http.content-type ~ "^(image/svg|image/svg\+xml|image/svg+xml)$") | |
{ | |
set beresp.do_gzip = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment