[EMAIL PROTECTED] Re: How to configure Apache 2 to compress xml files on serving?

2008-06-14 Thread Bo Berglund
On Fri, 13 Jun 2008 23:53:13 +0100, Nick Kew [EMAIL PROTECTED] wrote: On Fri, 13 Jun 2008 19:17:32 +0200 Bo Berglund [EMAIL PROTECTED] wrote: I need to set up a test environment where I am running Apache locally with a number of xml data files as objects to serve. I am doing this to simulate

[EMAIL PROTECTED] Re: How to configure Apache 2 to compress xml files on serving?

2008-06-14 Thread Bo Berglund
On Sat, 14 Jun 2008 00:47:03 +0200, André Warnier [EMAIL PROTECTED] wrote: The above (the response from the server) means that your browser will serve the object from it's cache, so it doesn't tell us much. Clear the browser cache, get the same URL from server1 again. (Or press SHIFT and click

Re: [EMAIL PROTECTED] Re: How to configure Apache 2 to compress xml files on serving?

2008-06-14 Thread André Warnier
HTTP/1.x 200 OK Date: Sat, 14 Jun 2008 06:33:12 GMT Server: Apache/2.0.53 (Fedora) Last-Modified: Thu, 12 Jun 2008 14:10:29 GMT Etag: 14fc-b9387f40 Accept-Ranges: bytes Content-Length: 5372 Cache-Control: no-transform Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type:

[EMAIL PROTECTED] Re: How to configure Apache 2 to compress xml files on serving?

2008-06-14 Thread Bo Berglund
On Sat, 14 Jun 2008 09:32:26 +0200, André Warnier [EMAIL PROTECTED] wrote: HTTP/1.x 200 OK Date: Sat, 14 Jun 2008 06:33:12 GMT Server: Apache/2.0.53 (Fedora) Last-Modified: Thu, 12 Jun 2008 14:10:29 GMT Etag: 14fc-b9387f40 Accept-Ranges: bytes Content-Length: 5372 Cache-Control:

[EMAIL PROTECTED] Re: How to configure Apache 2 to compress xml files on serving?

2008-06-14 Thread Bo Berglund
On Sat, 14 Jun 2008 13:59:38 +0200, André Warnier [EMAIL PROTECTED] wrote: Add the following directive to the above section : AddEncoding x-gzip .gz and try again ... Probably now FireFox does not realize that the data are gzipped anymore and tries to parse the binary compressed

Re: [EMAIL PROTECTED] Re: How to configure Apache 2 to compress xml files on serving?

2008-06-14 Thread André Warnier
Bo Berglund wrote: And now the headers become this when I access a xml.gz link: HTTP/1.x 200 OK Date: Sat, 14 Jun 2008 16:55:40 GMT Server: Apache/2.0.54 (Win32) PHP/4.4.7 Last-Modified: Thu, 12 Jun 2008 22:18:16 GMT Etag: 5ac36-159b-89b5a184 Accept-Ranges: bytes Content-Length: 5531

[EMAIL PROTECTED] Re: How to configure Apache 2 to compress xml files on serving?

2008-06-13 Thread Bo Berglund
On Fri, 13 Jun 2008 10:45:04 -0700, Dragon [EMAIL PROTECTED] wrote: Perhaps the AddEncoding directive would help? I don't really know as I have not tried it, but it is worth a try. http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addencoding Combined with the AddType directive to tell the

Re: [EMAIL PROTECTED] Re: How to configure Apache 2 to compress xml files on serving?

2008-06-13 Thread André Warnier
Hi again. To find out exactly what happens on one server (where it does it right) and the other (where it doesn't), you should have a look at the HTTP headers sent in the server response, in one case and the other. I'll give you what I would use, because I am a perl user, and there is a

[EMAIL PROTECTED] Re: How to configure Apache 2 to compress xml files on serving?

2008-06-13 Thread Bo Berglund
On Fri, 13 Jun 2008 20:42:46 +0200, André Warnier [EMAIL PROTECTED] wrote: To find out exactly what happens on one server (where it does it right) and the other (where it doesn't), you should have a look at the HTTP headers sent in the server response, in one case and the other. I'll give you

Re: [EMAIL PROTECTED] Re: How to configure Apache 2 to compress xml files on serving?

2008-06-13 Thread Dragon
Bo Berglund wrote: On Fri, 13 Jun 2008 20:42:46 +0200, André Warnier [EMAIL PROTECTED] wrote: To find out exactly what happens on one server (where it does it right) and the other (where it doesn't), you should have a look at the HTTP headers sent in the server response, in one case and the

Re: [EMAIL PROTECTED] Re: How to configure Apache 2 to compress xml files on serving?

2008-06-13 Thread André Warnier
Bo Berglund wrote: On Fri, 13 Jun 2008 20:42:46 +0200, André Warnier [EMAIL PROTECTED] wrote: To find out exactly what happens on one server (where it does it right) and the other (where it doesn't), you should have a look at the HTTP headers sent in the server response, in one case and the

Re: [EMAIL PROTECTED] Re: How to configure Apache 2 to compress xml files on serving?

2008-06-13 Thread André Warnier
Bo Berglund wrote: On Fri, 13 Jun 2008 14:29:16 -0700, Dragon [EMAIL PROTECTED] wrote: There should be a difference in the HTTP headers. The difference will tell you (or us) where to start looking. You are using Firefox, yes? (I seem to recall that...) If so, go get the LiveHeaders