Compressed SVG support (*.svgz) in Tomcat

2013-12-28 Thread David Law
Hi, Tomcat doesn't seem to serve compressed SVG's (*.svgz) correctly. The response should have a Content-Encoding header, value 'gzip'. Any chance of getting this at long last? (a change to org.apache.catalina.servlets.DefaultServlet, I presume) Version: 7.0.47 All the best, DaveLaw -

Re: Compressed SVG support (*.svgz) in Tomcat

2013-12-28 Thread David Law
Hi Chris, On 28/12/2013 19:34, Christopher Schultz wrote: What type of data do you have on the disk? Its all standard stuff. As specified by W3C, compressed SVG's are just SVG's (which are just XML) compressed with gzip, with a Mime-Type of "image/svg+xml", and extension ".svgz" What content

Re: Compressed SVG support (*.svgz) in Tomcat

2013-12-28 Thread David Law
st need a DefaultServlet expert to do the "slow & clean" stuff. I believe a generic solution to be best though, long-term. Something like: svgz image/svg+xml gzip ...with a new Tag, for example: "encoding" All the best, DaveLaw On 28/12/2013 18:06, David

Re: Compressed SVG support (*.svgz) in Tomcat

2013-12-29 Thread David Law
mage. Thanks again, DaveLaw On 29/12/2013 10:06, Mark Thomas wrote: On 28/12/2013 21:36, David Law wrote: I just tried this in DefaultServlet: if (contentType.equals("image/svg+xml") && path.toLowerCase().endsWith(".svgz")) { response.addHeader("Conten

Re: Compressed SVG support (*.svgz) in Tomcat

2013-12-29 Thread David Law
r adhering to that Spec. The Internet Forums are full of entries from people looking for a solution, so I hopethe JIRA <https://java.net/jira/browse/SERVLET_SPEC-86> Mark created will meet with approval. All the best, DaveLaw On 29/12/2013 11:18, Jan Tosovsky wrote: On 2013-12-28 David La

Re: Compressed SVG support (*.svgz) in Tomcat

2013-12-29 Thread David Law
29/12/2013 14:10, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 12/28/13, 12:06 PM, David Law wrote: Tomcat doesn't seem to serve compressed SVG's (*.svgz) correctly. The response should have a Content-Encoding header, value

Re: Compressed SVG support (*.svgz) in Tomcat

2013-12-29 Thread David Law
pinion on that? Regards, DaveLaw On 30/12/2013 00:18, André Warnier wrote: Mark Thomas wrote: On 28/12/2013 21:36, David Law wrote: I just tried this in DefaultServlet: if (contentType.equals("image/svg+xml") && path.toLowerCase().endsWith(".svgz")) { response.addH

Re: Compressed SVG support (*.svgz) in Tomcat

2013-12-30 Thread David Law
On 30/12/2013 16:12, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 12/28/13, 3:20 PM, David Law wrote: No Content-Encoding header is sent in the response. And that is exactly the problem: DefaultServlet needs to be changed to serve up svgz's with Content-E

Re: Compressed SVG support (*.svgz) in Tomcat

2013-12-31 Thread David Law
mp; Content-Transfer-Encoding are intended for use in transmission only, so the data will arrive intact. An example of such would be Base64: http://en.wikipedia.org/wiki/Base64 I think we were right to choose Content-Encoding. All the best, DaveLaw On 30/12/2013 01:28, David Law wrote: Hi Andr

Re: Compressed SVG support (*.svgz) in Tomcat

2013-12-31 Thread David Law
SSAGE- Hash: SHA256 David, On 12/31/13, 2:52 AM, David Law wrote: these are 2 completely different issues. svgz's should be served with the correct encoding (gzip) as required by the W3C SVG standard. ALWAYS. http://www.w3.org/TR/SVG11/conform.html#ConformingSVGServers That means, file

Re: Compressed SVG support (*.svgz) in Tomcat

2014-01-02 Thread David Law
3. All the Best, DaveLaw On 01/01/2014 19:36, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 avid, On 12/31/13, 10:43 AM, David Law wrote: there's nothing to debate: the standard says svgz's need Content-Encoding: gzip so thats what we have to do. At thi

Re: [ANN] Apache Tomcat 7.0.50 released

2014-01-12 Thread David Law
Thanks for that. :-) You might like to correct this Typo under Tomcat 7.0.50 / Catalina: "Streamline handling of WebSocket messages whe..." to "when" or "where" for example. All the best, DaveLaw On 12/01/2014 11:15, Violeta Georgieva wrote: The Apache Tomcat team announces the immediate avail

Who the f*** is Stephen?

2014-05-31 Thread David Law
Hi Alex, hope you're thriving. I got a LinkedIn invitation from a Stephen Everson who (I think...) I've never heard of. I see he's one of your connections. Any idea who he is & why he would be contacting me? Dave - To unsubsc

Quinta dos Três Rios

2015-04-17 Thread David Law
Hi Dave, nice to speak to you just now. The place I mentioned in Portugal is: Quinta dos Três Rios ...a treasure trove. :-) Hope we'll be able to bump into you soon. All the best, Dave