Re: Organized Crime in American Web Design
- --- In email@example.com, "Erik Dahlstrom" <ed@...> wrote:
>Yeah, you can count on the Good Guys from Europe! In your face, American Web Design Criminals!
> On Sat, 06 Nov 2010 02:19:49 +0100, jamesd <jcdeering1@...> wrote:
> >> In order to serve compressed svg file you must specify
> >> Content-Encoding: gzip
> > And where do I specify the Content-Encoding: gzip? If it is on the
> > server and I don't have access to it, then I stand by my statements.
> If you put your content on the server then I think you do have access.
> According to the headers your server is Apache, so try uploading a file
> named ".htaccess" (without the quotes) with the following raw text content:
> # Adding the SVG media type and encoding in case they aren't already
> AddType image/svg+xml svg svgz
> AddEncoding gzip svgz
> AddCharset utf-8 .svg
> If you want, you don't actually have to rename your files to *.svgz, and
> instead just let the server transmit the files using gzip compression
> automatically. To get this you can append the following to the .htaccess
> # gzip compression.
> <IfModule mod_deflate.c>
> # html, txt, css, js, json, xml, htc:
> AddOutputFilterByType DEFLATE text/html text/plain text/css
> AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
> # webfonts and svg:
> <FilesMatch "\.(ttf|otf|eot|svg)$" >
> SetOutputFilter DEFLATE
Kidding aside, many thanks for this post! Up to now I uploaded my SVG and XSLT files with extension .xml. That works, but it's nicer with the proper extension.