Questions tagged [mod-deflate]

72 questions
3
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
  • 335
  • 1
  • 4
  • 11
3
votes
2 answers

How can I disable gzip in apache on Ubuntu 10.10?

I'm trying to figure out how to disable or uninstall gzip from my Ubuntu server. This is to support a package of buggy software that breaks when it's trying to do a crazy call to a css file (don't ask, the code architecture is horrifying). The…
Lynn
  • 299
  • 6
  • 16
3
votes
1 answer

Prevent Apache mod_deflate from compressing empty 302 redirect responses

Apache with mod_deflate (uselessly) compresses even empty (PHP-generated) 302 redirect responses, adding a 20-byte response body. Modern browsers are ok with this but IE6 seems to randomly choke on that 20 bytes. Is there a way to configure…
Sergio
  • 161
  • 5
3
votes
1 answer

is mod_deflate 's default configuration ok to use in a production setup?

The official documentation for mod_deflate works, and gives me nice results so far on my serveR. Are there any changes anyone suggests for use on a production machine? http://httpd.apache.org/docs/2.2/mod/mod_deflate.html#recommended #…
solsol
  • 1,121
  • 8
  • 21
  • 31
3
votes
2 answers

gzip js on apache

the following configuration in httpd.conf only gzip css and html, not javascript, any idea? AddOutputFilterByType DEFLATE text/html text/plain text/javascript text/css AddOutputFilterByType DEFLATE application/x-javascript
user12145
  • 1,075
  • 6
  • 26
  • 47
3
votes
2 answers

Apache - How to disable gzip content encoding (eg DEFLATE) for one set of URLs?

I have a ubuntu apache webserver and I have enabled mod_deflate to gzip all the content. However there's one folder I'd like to disable the mod_deflate for. I was going to do something like this: RemoveOutputFilter…
Amandasaurus
  • 30,211
  • 62
  • 184
  • 246
2
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.…
2
votes
1 answer

enabling gzip with htaccess...why is it hit or miss?

I have shared hosting through Justhost. I use the HTML5 Boilerplate .htaccess (have tried other methods from here and there without luck) the compression part is as follows: # Force deflate for mangled headers…
adam-asdf
  • 191
  • 1
  • 10
2
votes
2 answers

Apache 2 does not load mod_deflate

I'm running Apache 2 on a Redhat Enterprise Linux 5.8 x86_64 standard box, and can't seem to get mod_deflate enabled. This is a WHM installation, so I am making amendments to one of the include files that isn't changed by WHM automatically. I have…
Will Morgan
  • 123
  • 5
2
votes
1 answer

Apache deflate ignores javascript

I have set up deflate in my htaccess. Everything works fine, except for some reason javascript files are being ignored. I tried every possible combination of AddOutputFilterByType DEFLATE with multiple mime-types but all without effect. Its not a…
realshadow
  • 121
  • 4
2
votes
1 answer

Apache mod_deflate only for files larger than 1000 bytes

Is it possible to use mod_deflate in Apache 2.2 only for files bigger than a certain size ? According to this article and common sense only files over 1000 bytes benefit deflate/gzip.
Dragos
  • 349
  • 1
  • 2
  • 11
2
votes
3 answers

gzip compression good or bad?

I have a server that currently does a lot of processing in my application and the target users are those who have a very good internet connection. The output that is sent from the server is always text/html and we do not use any media (audio/video)…
YD8877
  • 275
  • 1
  • 5
  • 10
2
votes
1 answer

Apache mod_cache and mod_deflate?

We have a Apache 2.2 with mod_cache and mod_deflate among other modules. The problem is that if we append Vary header as in Apache documentation... # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary ...…
Petteri H
  • 227
  • 5
  • 12
2
votes
1 answer

Enable mod_deflate per directory level

I am using following code, when i access site it only compress all the jsp inside all the urls path under /abc but it ignores all the js and css files. I want to compress js and css files under all the subfolders in /abc path? How I can do this.…
z1_jabbar
  • 21
  • 2
2
votes
1 answer

apache2 mod_deflate static content

I have a server serving up a JS file a few million times a day using apache2. Some of my users would like the JS to be gzipped. Does anyone know how apache2 mod_deflate handles compression of static files? Will it compress the js for each…
rizen