Questions tagged [mod-deflate]

72 questions
22
votes
3 answers

How to enable either Gzip or Deflate compression via .htaccess?

How to enable either Gzip or Deflate compression via .htaccess and which one is best these days? Code examples needed.
dzhi
  • 770
  • 3
  • 10
  • 23
9
votes
2 answers

Why Apache doesn’t gzip css or js files which have parameters?

Some CSS & JS files are not compressed by apache with mod_deflate enabled. This files looks like this "[domain.name]/aggregator.css?..." or "[domain.name]/misc/jquery.js?..." in YSlow. The other CSS & JS without the "?" gets compressed. Kindly…
user15379
8
votes
1 answer

mod_deflate - Optimal configuration for most browsers

I was wondering if someone here could help me determine the optimal standard configuration for using mod deflate with Apache. Basically, mod_deflate recommends using the following configuration for getting started right away: Compress only a few…
Jason Huntley
  • 1,253
  • 3
  • 10
  • 22
7
votes
3 answers

Apache mod deflate does not compress php output

I've got the mod_deflate up and running. I can throw in a something.txt file in my apache server and use curl to check it out. curl --compressed -I /somefile.txt gives me back the following which is good and compressed: Vary:…
Erik-Jan Riemers
  • 235
  • 1
  • 2
  • 7
7
votes
4 answers

How to tell if mod_deflate is actually working?

I have put the following in my http.conf file: # mod_deflate configuration # Restrict compression to these MIME types AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType…
Jay
  • 173
  • 1
  • 1
  • 5
7
votes
1 answer

Apache deflates .xml.gz files

I noticed an error in google webmaster tools regarding a gzipped version of a sitemap. Turns out the sitemap.xml.gz file is gzipped twice: one upon creation (as it should be) and another time when being served. The .htaccess file has this…
Matteo Riva
  • 297
  • 3
  • 14
6
votes
1 answer

How to enable deflate content-encoding with Apache2 mod_deflate?

No matter how I test using different value of Accept-Encoding, it always returned as gzip. curl -I -H 'Accept-Encoding: gzip' http://www.example.com Content-Encoding: gzip curl -I -H 'Accept-Encoding: deflate'…
Howard
  • 2,005
  • 11
  • 47
  • 70
5
votes
0 answers

Apache + Php-FPM + APC : mode_deflate not compressing HTML output

I have prepared a server to run a Magento instance with: Apache + Php-FPM + APC The problem I have is that Apache is not compressing the HTML output from the Magento PHP scripts. In my .htaccess I have: AddOutputFilterByType DEFLATE text/html…
Ox3
  • 151
  • 4
5
votes
3 answers

DEFLATE not working in IE9

I posted this on stack overflow but it was suggested I may have more luck here: I have not used deflate before to encode web pages so this is new ground for me but when I look at nework traffic in ff my all.js file is now 117kb from 427kb so I seem…
SwiftD
  • 223
  • 3
  • 9
5
votes
2 answers

mod_deflate Supported Encodings for Compression

It seems to me, that mod_deflate in Apache 2.2 will always return: Content-Encoding: gzip and never: Content-Encoding: deflate It was explained to me, that although there may be a deflate algorithm, mod_deflate is named after a file-format, in which…
sparc
  • 128
  • 5
4
votes
1 answer

Apache mod_deflate not compressing javascript and css files?

"GET /Symfony/web/app.php/app/dashboard HTTP/1.1" 4513/37979 (11%) "GET /Symfony/web/css/application.css HTTP/1.1" -/- (-%) "GET /Symfony/web/js/application.js HTTP/1.1" -/- (-%) "GET /Symfony/web/js/highcharts.js HTTP/1.1" -/- (-%) "GET…
gremo
  • 325
  • 4
  • 20
4
votes
1 answer

How to stop mod_deflate from logging to my php error log?

I have an environment setup on a system I am not in control of and mod_deflate is entering about 3 lines in the error log for every request. They are only the debug level but for some reason the people in control of the server will not disable that…
gokujou
  • 265
  • 1
  • 4
  • 9
3
votes
3 answers

apache : disable mod_deflate - [error] an unknown filter

I am running apache with mod_pagespeed on fedora (14), and I am getting the error message: [error] an unknown filter was not added: DEFLATE a lot. I know this is because mod_deflate is not loaded, but that's good, I don't want to load it (the load…
CodeMonkey
  • 173
  • 1
  • 2
  • 7
3
votes
1 answer

Disable compression on SSL/TLS connections in Apache < 2.2.16 using mod_header

Because of CRIME, as I understand, compression on SSL connections have to be turned off. In newer versions of apache this can be done with a newly introduced directive SSLCompression off, in older versions this is not possible (in Debian before…
3
votes
2 answers

Missing mod_deflate.so?

I'm trying to build apache with mod_deflate enabled. When restarting apache I'm presented with the following error: httpd: Syntax error on line 36 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/mod_deflate.so into…
Peter
  • 250
  • 1
  • 4
  • 11
1
2 3 4 5