On Sat, 06 Nov 2010 02:19:49 +0100, jamesd <[email protected]> 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
file:
# gzip compression.
<IfModule mod_deflate.c>
# html, txt, css, js, json, xml, htc:
AddOutputFilterByType DEFLATE text/html text/plain text/css
application/json
AddOutputFilterByType DEFLATE text/javascript application/javascript
application/x-javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
# webfonts and svg:
<FilesMatch "\.(ttf|otf|eot|svg)$" >
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
To conclude I would like to recommend browsing the following two sites for
some tips & tricks on serving web content:
http://html5boilerplate.com
http://svgboilerplate.com
Cheers
/Erik
--
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
------------------------------------
-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/