Ive enabled (v11.4) the standard http compression on a VS. I have a http profile also enabled. If I then test I dont see the nessecary headers returned…
curl -IL -H 'Accept-Encoding: gzip,deflate' http://192.168.1.1/index.php
HTTP/1.1 200 OK
Date: Fri, 01 Aug 2014 13:44:38 GMT
Server: Apache/2.2.15 (CentOS)
X-Powered-By: PHP/5.3.3
Content-Type: image/jpeg
Any ideas ?
not sure if it’s related but you asked for a php and you get back an image ?
Probably related, there would be no point in compressing image/jpg
The default mime types enabled for compression are only text and application/xml|x-javascript.
Check your webserver, if you fix the mime type it is responding with(or is index.php file really a jpg and the webserver is correct?) it will start compressing.
Thanks, however even if i create a text file it still fails to compress. Even though the content-type is shown as text/plain,
[admin@server ~]$ curl -IL -H 'Accept-Encoding: gzip,deflate' http://192.168.1.1/compress.txt
HTTP/1.1 200 OK
Date: Mon, 04 Aug 2014 09:47:35 GMT
Server: Apache/2.2.15 (CentOS)
Last-Modified: Mon, 04 Aug 2014 09:31:55 GMT
ETag: "21478-e-4ffca68ed5225"
Accept-Ranges: bytes
Content-Length: 14
Content-Type: text/plain; charset=UTF-8
Any ideas ?