Questions tagged [mod-deflate]

73 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
  • 840
  • 3
  • 13
  • 28
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…
8
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
  • 183
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:…
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…
6
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
  • 161
  • 4
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,275
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
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
  • 377
4
votes
1 answer

apache disable deflate module on a per site basis

Is there a way to disable the deflate module on a per site basis in Apache2? I have a legacy website that uses custom mime type server side includes that are breaking with the deflate module enabled. My guess is that the included file is being…
gurun8
  • 355
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
3
votes
1 answer

Apache 2.4.7 ignores response header Content-Encoding: identity, instead respects Content-Encoding: none, set by PHP

I just realized my apparent problem (and the "solution" Content-Encoding: none from the StackOverflow question I referred to in my initial question, below) may very well have simply been due to a misunderstanding how things are actually working.…
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…
1
2 3 4 5