diff --git a/master/conform.html b/master/conform.html index fd3d21f5..d7c3d387 100644 --- a/master/conform.html +++ b/master/conform.html @@ -845,17 +845,42 @@

Conforming SVG Servers

Servers must indicate this with the appropriate header, according to what the protocol supports. Specifically, for content compressed by the server immediately prior to transfer, the server must use the "Transfer-Encoding: gzip" -or "Transfer-Encoding: deflate" headers as appropriate, and for content -stored in a compressed format on the server (e.g. with the file extension "svgz"), +or "Transfer-Encoding: deflate" headers as appropriate. +For content stored in a compressed format on the server (e.g. with the file extension .svgz), the server must use the "Content-Encoding: gzip" or "Content-Encoding: deflate" headers as appropriate.

-

-Compression of stored content (the "entity," in HTTP -terms) is distinct from automatic compression of the message body, as +

+

+In HTTP, compression of stored content (the "entity") is distinct from automatic compression of the message body, as defined in HTTP/1.1 TE/ Transfer Encoding -([rfc2616], sections 14.39 and 14.41).

+([rfc2616], sections 14.39 and 14.41). +If this is poorly configured, +and the compression specified in the HTTP headers does not match the used values, +SVG user agents are required to treat the document as being in error. +

+

+Configuring a server to handle both SVG and SVGZ files +means that it must be able to assign the same media type to both types of files, +but with different compression headers. +Some commonly used servers do not support this configuration in an easy or efficent way, +because compression behavior is configured based on media type. +

+

+With most modern web servers, it is often easier to upload uncompressed SVG files instead of SVGZ files. +Then, rely on the server to compress the file for transmission, +and cache it for future request, +using the same server instructions as for other text-based file formats such as HTML. +This also allows the server to use newer compression methods, +when they are supported by the user agent requesting the file. +

+

+Alternatively, the web server may be able to correctly process pre-compressed SVGZ files +if they are first renamed to use the .svg.gz compound file extension. +The server would still need to be configured to support static gzip-compressed files. +

+

Conforming SVG Interpreters

@@ -1032,7 +1057,7 @@

Conforming SVG Viewers

be accurate to within one sRGB color component value, where sRGB color component values range from 0 to 255. -
  • SVG implementations must correctly support +
  • SVG implementations must correctly support gzip-encoded [rfc1952] and deflate-encoded @@ -1049,7 +1074,7 @@

    Conforming SVG Viewers

    gzip-encoded and deflate-encoded data streams that are downloaded from the server. When an SVG - viewer retrieves compressed content (e.g., an .svgz file) over + viewer retrieves compressed content (e.g., an .svgz file) over HTTP, if the "Content-Encoding" and "Transfer-Encoding" response headers are missing or specify a value that does not match the compression method that has been applied to the content, then