Questions tagged [mod-deflate]
The mod-deflate tag has no usage guidance.
72
questions
1
vote
1
answer
43
views
How to decompress responses in apache matching extension
I'm trying to configure apache in order to uncompress .kmz files served to the client application (I want to avoid dealing with additional js libraries).
I've mod_deflate enabled and I added that ...
1
vote
1
answer
474
views
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)? ...
1
vote
0
answers
733
views
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:
<IfModule mod_deflate.c>
DeflateCompressionLevel 3
...
0
votes
1
answer
4k
views
Slow TTFB when enabling Apache modules
I recently ran into an issue I still cannot overcome.
So, I have a marketplace written in WordPress. After the development process, I tried to optimize the speed since the website loads many ...
2
votes
1
answer
2k
views
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 ...
1
vote
0
answers
110
views
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 ...
0
votes
0
answers
1k
views
Deflate module not working in .htaccess
I have deflate module enabled but when I put my code in .htaccess, it is not working. On various websites I have tested and it shows me to enable gzip compression. Below is the code for deflate:
<...
1
vote
1
answer
695
views
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 ...
0
votes
1
answer
655
views
mod_deflate and Pagespeed
I´ve activated mod_deflate on my server. The problem is that Google pagespeed says that my site needs a compression.
Have anybody an idea?
This code is in the /etc/apache2/apache2.conf. I restartet ...
1
vote
1
answer
541
views
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
<IfModule mod_deflate.c>
# Set compression for: html,...
1
vote
1
answer
432
views
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 ...
1
vote
0
answers
109
views
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 ...
1
vote
2
answers
1k
views
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 -...
-1
votes
1
answer
947
views
Setting a custom value to the DeflateBufferSize results in 500 internal server error
I'm trying to reset the DeflateBufferSize directive like so in my .htaccess file:
DeflateBufferSize 1024
SetOutputFilter DEFLATE
But the result of each page is then 500 internal server error (this ...
-1
votes
1
answer
391
views
centos6 / apache2.2 / mod_deflate: Not working
I have a server with Centos6, Apache2.2, mod_deflate, mod_filter etc enabled.. But I dont see any compression. I have tried all combinations of filter and mod commands that is on the internet for ...
0
votes
1
answer
253
views
Apache deflate in .htaccess not working
I have a virtual host and have enabled AllowOverride All. I know this works since the rewrite rules within the /var/www/site/web/.htaccess are being executed (It's a Symfony app). However when I have ...
1
vote
0
answers
717
views
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:
...
5
votes
0
answers
2k
views
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 ...
1
vote
1
answer
206
views
Apache serving modified static assets incorrectly: serves obsolete file with sizes adjusted to match that of the new file [duplicate]
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 ...
1
vote
1
answer
3k
views
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 ...
0
votes
0
answers
933
views
Enable gzip for source maps
I'm using the Grunt plugins to concat, minify and generate source maps of my Javascript before I push it to the production server (I'll soon be doing the same with SASS for CSS).
The source maps ...
1
vote
1
answer
2k
views
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
<IfModule mod_deflate....
6
votes
3
answers
12k
views
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 ...
1
vote
1
answer
1k
views
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:
<...
3
votes
3
answers
17k
views
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, ...
0
votes
1
answer
371
views
mod_deflate is working but send wrong headers
I'm using mod_deflate to server gzip content for js and css files.
Using curl I can see that it works and I can see the code but Chrome still thinks it's gzip content and NOT stylesheets/javascript ...
0
votes
1
answer
2k
views
compression mod_deflate is not working on apache2
I have two websites on my apache server. I have already enabled mod headers and deflates. in /etc/apache2/mod-available/deflate.conf i have written:
<IfModule mod_deflate.c>
SetOutputFilter ...
0
votes
1
answer
1k
views
Apache gzip compression
I have an inherited Apache 2.2.17 server running on Ubuntu that I need to enable compression on. I have ensured the mod is loaded:
apachectl -t -D DUMP_MODULES
Loaded Modules:
...
deflate_module (...
3
votes
1
answer
5k
views
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 ...
0
votes
2
answers
2k
views
Server 500 error with mod_deflate in .htaccess
When I enable mod_deflate in .htaccess under Apache 2.2.23, I get a site wide 500 server error.
Here is the code I am using:
<IfModule mod_deflate.c>
# Don't compress certain content under ...
2
votes
1
answer
2k
views
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:
<IfModule mod_deflate....
2
votes
2
answers
272
views
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 ...
3
votes
2
answers
5k
views
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 /...
4
votes
1
answer
4k
views
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/...
0
votes
2
answers
1k
views
How to enable mod_deflate on apache
I've come across some article online to enable mod_deflate to gzip files while sending from the server.
For that, I tried to load the mod_deflate.so module by adding a line on my httpd.conf
...
6
votes
1
answer
2k
views
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-...
8
votes
1
answer
11k
views
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 ...
1
vote
1
answer
2k
views
How can the Apache 2.2 deflate_module length limit be increased?
I came across a problem with deflating HTML files larger than 8000 characters (documented in this question at stackoverflow). A straight HTML file larger than that causes the server to fail to ...
5
votes
3
answers
4k
views
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 ...
2
votes
1
answer
2k
views
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 ...
1
vote
0
answers
168
views
Does libapache-mod-deflate cache compressed result?
I got some json files to be served by apache httpd and their size are pretty big. (~100KiB)
So I put mod_deflate into httpd server and applied to application/javascript mime type.
I think ...
2
votes
1
answer
1k
views
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.
7
votes
4
answers
24k
views
How to tell if mod_deflate is actually working?
I have put the following in my http.conf file:
# mod_deflate configuration
<IfModule mod_deflate.c>
# Restrict compression to these MIME types
AddOutputFilterByType DEFLATE text/plain
...
1
vote
2
answers
602
views
`mod_deflate` is returning `Content-Encoding: gzip`. Is that normal?
mod_deflate is configured on my Apache 2.2 web server. But my response headers are showing gzip as the Content-Encoding instead of deflate:
HTTP/1.1 200 OK
Date: Mon, 26 Sep 2011 22:26:11 GMT
Server:...
0
votes
3
answers
1k
views
Apache mod_deflate not found?
I read about how to enable the mod_deflate on my "clean" installation of Apache 2.2.17 on Ubuntu.
I found that I should do this in order to enable:
LoadModule deflate_module /usr/lib/apache2/modules/...
0
votes
2
answers
3k
views
Cannot load mod_deflate [closed]
I'm running CentOS 5.6 with cPanel.
I've rebuilt my apache to have deflate enabled. Here is my EasyApache Build Log:
./configure
--enable-deflate
--enable-expires
--...
7
votes
1
answer
748
views
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 ...
0
votes
1
answer
795
views
Switch to FastCGI from Apache php support disabled mod_deflate
After i was told by my server providers support staff to swtich to FastCGI from Apache php support, i later found out that mod_deflate stopped working, it was working fine before the switch. My static ...
1
vote
2
answers
2k
views
Apache mod_ext_filter and mod_deflate response problem
I have a mod_ext_filter to replace the statics image url and mod_deflate to compress the web.
If I use this two module separate and everything work fine.
(1. Replace content ok and no compress 2. ...
3
votes
1
answer
6k
views
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. ...