W3C home > Mailing lists > Public > www-svg@w3.org > October 2010

Re: How to serve SVG to those UA that accept it, and HTML to those that do not?

From: Jeremie Patonnier <jeremie.patonnier@gmail.com>
Date: Mon, 4 Oct 2010 12:00:43 +0200
Message-ID: <AANLkTinG-ZyNSPBgGnqG2aZ+Hy45L4EnxnW8F-15d9HM@mail.gmail.com>
To: Jonathan Chetwynd <j.chetwynd@btinternet.com>
Cc: www-svg <www-svg@w3.org>
Hi jonathan

Could you be a bit more specific about your use case. SVG and HTML are very
different : SVG is an image format where HTML is a text document format. I
can figure out some use case where you can use both technologies but I think
this king of use case need some mechanism a bit more smart than traditional
Server content negotiation.

Best regards,
Jeremie

2010/10/4 Jonathan Chetwynd <j.chetwynd@btinternet.com>

> How to serve SVG in preference to HTML?
>
> How to serve SVG to those UA that accept it, and HTML to those that do not?
> ie image/svg+xml
>
> however this does not seem to be possible**
> 'using traditional content negotation...'
> with apache
>
> Has anyone  any experience and  success with this?
>
> regards
>
> Jonathan Chetwynd
>
>
> http://www.ioerror.us/ip/headers
>
> Opera  10.62  v8437             Accept: text/html, application/xml;q=0.9,
> application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap,
> */*;q=0.1
>
> Mozilla  10.5 v20100914         Accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
>
> Safari-webkit    5.0.2
> (5533.18.5, r67077)             Accept:
> application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
>
> Amaya                                   Accept:
> */*;q=0.1,image/svg+xml,application/mathml+xml,application/xhtml+xml
>
>


-- 
Jeremie
.............................
Web : http://jeremie.patonnier.net
Twitter : @JeremiePat <http://twitter.com/JeremiePat>
Received on Monday, 4 October 2010 10:01:16 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:46 GMT