SVGZ not supported

Issue #11938136 • Assigned to Travis L.

Details

Author
Jerome O.
Created
May 8, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

SVG images are supported as a standard, but why not the compressed version .svgz? When trying to open a .svgz file locally or on a server this error displays:
XML5605: Unrecognized input encoding signature.

When viewing an .svgz file in a web page served with correct headers it should unzip it and display as a .svg.

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Steven K.”

    Changed Status to “By design”

  • Hi Jerome,

    Edge does support SVG compression, i.e. svgz files.  The web server needs to support this feature and be enabled to serve the compressed files.  Edge does send the required request so that the server can respond with the compressed file.

    I have attached a sample html file and screenshot of its execution on Win 10 (14393.1066) to show a working example.  I used XAMPP for this repro and had to add a .htaccess file with the following contents in the folder where the html file is served from:

    "
    AddType image/svg+xml svg svgz
    AddEncoding gzip svgz
    "

    After doing that I could then see via fiddler the proper server response header containing:

    “Content-Type: image/svg+xml
    Content-Encoding: gzip”

    Here are some links with background information:

    https://graphicdesign.stackexchange.com/questions/24797/when-should-i-use-svg-or-svgz-for-my-web-graphics

    https://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/

    GZip test tool:

    http://www.gidnetwork.com/tools/gzip-test.php

    Hope this helps and thank you for the support,

    The MS Edge Team

  • What about local files not served by a webserver?

  • Changed Status from “By design”

  • What about local files not served by a webserver?

  • Microsoft Edge Team

    Changed Assigned To to “Steven K.”

  • Hi Jerome,

    Good question.  I thought adding the similar meta http-equiv tags might help, but they did not.

    <!DOCTYPE html>
    <head>
    <meta http-equiv="content-type" content="image/svg+xml" />
    <meta http-equiv="content-encoding" content="gzip" />

    Let me check into your question a little more.

  • Microsoft Edge Team

    Changed Assigned To to “Travis L.”

You need to sign in to your Microsoft account to add a comment.

Sign in