Questions tagged [mod-deflate]
73 questions
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
2
votes
2 answers
Is HTTP PUT request compressed if I am using mod_deflate or gzip on apache?
I am receiving xml files on my server using the HTTP PUT request.
Is it compressed during the transfer if my Apache is configured with mod_deflate?
How can I verify that it is compress?
If not, how can I force the compression?
Thanks!

benjisail
- 1,331
- 5
- 19
- 32
1
vote
1 answer
Apache mod_deflate MIME type settings
CPanel gives me options about what MIME content types to compress with Apache's mod_deflate, as shown below.
Are there disadvantages to having a long list of MIME types (eg. slower server response)? In other words, is there any reason I shouldn't…

sondra.kinsey
- 293
- 1
- 2
- 7
1
vote
0 answers
Can I use APACHE mod_deflate with HTTPS TLS?
My server is centos 7.4,with Apache 2.4.6,PHP 5.4,Mysql 5.5.
I plan to use mod_deflate to compress websites file as below:
DeflateCompressionLevel 3
AddOutputFilterByType DEFLATE text/html text/xml text/css text/xml…

kittygirl
- 945
- 5
- 13
- 33
1
vote
0 answers
Apache 2.4.23: gzip for HTTP 503
Can Apache be instructed to gzip the contents of an HTTP 503 response?
A page of a website that I manage needs to be temporarily removed. Not only
does HTTP 503 aptly describe the situation but it also preserves search
engine ranking. The response's…

Jmweb
- 11
- 2
1
vote
1 answer
apache httpd mod_expires does not work when deflate is on
On a Debian Jessie installation, I manually installed wordpress and edited .htaccess, turning mod_expires on:
ExpiresActive On
ExpiresDefault modification
However, when I use Firefox Inspector to watch network traffic, I find all the js and css…

Lv Zheng
- 131
- 2
1
vote
1 answer
Cannot get mod_deflate to work
I Cant seem to get mod_deflate to work. I tried using httpd.conf and htaccess with no luck. this is my htaccess code:
# DEFLATE compression
# Set compression for: html,txt,xml,js,css
AddOutputFilterByType DEFLATE text/html…

Sharlin Pather
- 11
- 1
1
vote
1 answer
Can't get included CSS and JS files to be compressed
I have enabled compression via .htaccess and in httpd.conf
However when I run it through the various online testers, its always saying that various included files are not compressed. Apache version is 2.2.15
.htaccess currently looks like this:
…

cosmicsafari
- 199
- 1
- 12
1
vote
0 answers
only declaration of mod_deflate lost 400-600 ms on TTFB
I would like to get to my site 100 score on google page speed and I only have the problem of TTFB in a few pages, a few pages in my TTFB is 400-600 ms.
Now I noticed a problem if I disable gzip compression, my site is under 200ms, and then passes…

themich
- 11
- 2
1
vote
2 answers
Debian Apache Deflate mod not working
I have apache 2.2.22 running on debian.
I have tried to enable deflate on this server but no matter what I do, the response is not getting deflated.
Here is the list of enabled modules:
apache2ctl -M
Loaded Modules:
core_module (static)
…

Bojan Hrnkas
- 143
- 11
1
vote
0 answers
apache deflate module not working
it's very strage, i google a problem with no luck at all.
i have 2 servers (centos6, apache2.2). apache configuration is totally the same (i sure, apache configured by puppet)
my deflate.conf:
AddOutputFilterByType DEFLATE text/html text/plain…

trim
- 11
- 3
1
vote
1 answer
Apache serving modified static assets incorrectly: serves obsolete file with sizes adjusted to match that of the new file
I've got a CakePHP project running in a CentOS VirtualBox. The website is served with Apache 2.2.15.
There are JS files in the document root folder. Apache seemed to serve them file.
But after i edit a JS file, Apache would serve the old file. It…
1
vote
1 answer
gzip compression using mod_deflate apache with tomcat
I'm trying to enable gzip compression in my Apache server which is fronting a Tomcat instance using a connector. I tried several variants of the module configuration settings in my httpd.conf. Here is my latest attempt:

Venkat
- 111
- 1
- 2
1
vote
1 answer
mod_deflate, centos, application/x-httpd-php
I trying enable output compression for Apache 2.2.15, and 5.3.3, but web-pages generated by php is not compressing :(
My deflate.conf:
[user@host conf.d]# cat deflate.conf
AddOutputFilterByType DEFLATE…

Hayate
- 171
- 1
- 8
1
vote
1 answer
How to enable compression with mod_deflate
Page speed insights tells me to enable compression for google-maps source.
It recommends to use mod_deflate if using Apache.
Well, I've put the next snippet code inside the .htaccess file:
Header…

Manolo
- 552
- 2
- 8
- 23