--- In [email protected], "Erik Dahlstrom" <e...@...> wrote:
>
> On Sat, 06 Nov 2010 02:19:49 +0100, jamesd <jcdeeri...@...> 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>
> 
> 

Yeah, you can count on the Good Guys from Europe!  In your face, American Web 
Design Criminals!

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.

Thomas W.



------------------------------------

-----
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/

Reply via email to