Forum Replies Created

Viewing 1 replies (of 1 total)
  • I would like support to SVGZ too :). I tried by replacing SVG by SVGZ in mimetype, but the sanitizer doesn’t seem to like it as that’s gziped.

    An alternative could be to have the option to gzip SVG every time (eventually advertizing the user that don’t know that they need :

    Thee mime type
    * In apache and nginx, add in conf/mime.types :

    image/svg+xml svg svgz

    * To inform the browser that this kind of file is compressed by default (that’s the case in apache by default, at least after a bug report I made ~5~10 years ago).

    * In apache : AddEncoding gzip svgz
    * In nginx :

    location ~* \.(svgz)$ {
    add_header Content-Encoding gzip;
    break;
    }

Viewing 1 replies (of 1 total)