Questions tagged [mod-deflate]

The mod_deflate is an Apache web server module that provides the DEFLATE output filter that allows output from your server to be compressed before being sent to the client over the network.

The mod_deflate is an Apache web server module that provides the DEFLATE output filter that allows output from your server to be compressed before being sent to the client over the network.

Simplest configuration is made by putting the following line in the .htaccess file:

AddOutputFilterByType DEFLATE text/html text/plain text/xml

The following configuration, while resulting in more compressed content, is also much more complicated. Do not use this unless you fully understand all the configuration details. Compress everything except images:

<Location />
    # Insert filter
    SetOutputFilter DEFLATE

    # Netscape 4.x has some problems...
    BrowserMatch ^Mozilla/4 gzip-only-text/html

    # Netscape 4.06-4.08 have some more problems
    BrowserMatch ^Mozilla/4\.0[678] no-gzip

    # MSIE masquerades as Netscape, but it is fine
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    # Don't compress images
    SetEnvIfNoCase Request_URI \
    \.(?:gif|jpe?g|png)$ no-gzip dont-vary

    # Make sure proxies don't deliver the wrong content
    Header append Vary User-Agent env=!dont-vary
</Location>
166 questions
0
votes
1 answer

Optimize my code for google insights

Google page insights suggesting me to turn on mod_deflate, but I don't understand how to do it.. my htaccess is RewriteEngine On RewriteBase / SetEnv no-gzip dont-vary RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+(.+?)/{2,}[?\s] [NC] RewriteRule ^…
0
votes
2 answers

ySlow, Mod Deflate, cPanel Website Optimizer & Javascript

I just got around to installing mod_deflate on my server. I also added the following to my Website Optimizer in cPanel: text/html text/plain text/xml text/css text/js text/javascript Now, the site shows considerable improvement in loading time…
Bhavik
  • 1
0
votes
1 answer

mod_deflate compression causing swf files to not work correctly

Recently enabled mod_defalte on my server to compress certain files. I thought the setup wouldn't cause any issues with .swf files but ever since I've had issues relating to .swf files running but not getting past their loading screens. mod_deflate…
Dan
  • 11,914
  • 14
  • 49
  • 112
0
votes
1 answer

Custom header for mod_deflate

Some mobile operators(rays of hate) turns of compression (remove header Accept-Enconding) when using internet. Have the opportunity to respond mod_deflate to custom header ?
cetver
  • 11,279
  • 5
  • 36
  • 56
0
votes
1 answer

PageSpeed site optimization trouble

I have a problem with the inclusion of compression on my website. Site hosted with WordPress and GZIP compression of HTML works fine even without any lines in the .htaccess or plug-ins. But the compression of JS/CSS does not turn on. Ive tried a lot…
nikos
  • 21
  • 1
  • 1
  • 5
0
votes
1 answer

Enabling GZIP compression for php script

I've enabled gzip on my php scripts by doing this: This…
Simon
  • 1,354
  • 1
  • 14
  • 18
0
votes
1 answer

How to enable chuncking on Apache 2.2.3 on Redhat system

My Apache (version 2.2.3 on redhat) server doesn't accept chunked-encoding, throwing this error: chunked Transfer-Encoding forbidden: /services/soap. I saw some people have the same problem, they suggested disabling the mod_deflate.so, I commented…
securecurve
  • 5,589
  • 5
  • 45
  • 80
0
votes
1 answer

mod_deflate gzips responses for MIME types that it shouldn't gzip

I have an Apache 2.2.15 instance as a proxy in front of a Tomcat application on Red Hat 6.4. I am trying to configure the Apache instance to gzip certain (white-listed content types) responses to the client. Apache is using mod_jk to connect to…
Barry Pitman
  • 3,087
  • 1
  • 24
  • 32
0
votes
0 answers

Apache mod_deflate and chunked transfer

my website is running on Apache 2.2.24 + PHP 5.3.22. Apache is installed with mod_deflate and my .htaccess looks like this: AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css…
Gotenks
  • 367
  • 6
  • 14
0
votes
1 answer

installed mod_deflate but no improvement

I have installed the mod_deflate on centos. In virtual host file I have added the following SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary SetEnvIfNoCase Request_URI …
niraj vara
  • 25
  • 6
0
votes
3 answers

How to exclude urls from Apache mod_deflate via SetEnvIfNoCase

I'm dealing with a Magento site that has a 3rd party CMS integration. When I enable Mod_deflate via the .htaccess file most of the site works well. All of the pages that pull the information from the CMS show "gobbledy-gook" and it apprears that…
Lavala78
  • 21
  • 1
  • 3
0
votes
2 answers

What's the difference between Apache 1.x and 2.x when it comes to Gzip compression

Couple of tests I ran show that Apache 2.x has better compression(mod_deflate) compared to Apache 1.x. Let me know if there's a detailed benchmarking done by anyone.
holydevil
  • 186
  • 3
0
votes
1 answer

Apache mod_deflate doesn't compress javascript/css

I'm trying to make Gzip compression work on xampp, right now this is in my .htaccess AddOutputFilterByType DEFLATE text/html text/plain text/css application/json AddOutputFilterByType DEFLATE text/css …
Crinsane
  • 818
  • 3
  • 16
  • 28
-1
votes
1 answer

Gzip / deflate not enabled accordin to Google pagespeed insights

I am having this problem with google pagespeed insights, its complaining that the content is not compressed. all JS, CSS and html. I enabled Gzip on the server and .htaccess here is my htaccess: # Compress HTML, CSS,…
Mazarelo
  • 3
  • 2
-1
votes
2 answers

How does Apache handle images/flash when deflate mode is on

I'm thinking of enabling deflate mode on Apache. I'm curious how does Apache deal with images or flash files when deflate is on? Does it try to compress images and flash files as well?
dev.e.loper
  • 35,446
  • 76
  • 161
  • 247
1 2 3
11
12