mod-deflate

How can I pre-compress files with mod_deflate in Apache 2.x?

I am serving all content through apache with Content-Encoding: zip but that compresses on the fly. A good amount of my content is static files on the disk. I want to gzip the files beforehand rather than compressing them every time they are requested. This is something that, I believe, mod_gzip did in Apache 1.x automatically, but jus...

Compressing HTTP request with LWP, Apache, and mod_deflate

I have a client/server system that performs communication using XML transferred using HTTP requests and responses with the client using Perl's LWP and the server running Perl's CGI.pm through Apache. In addition the stream is encrypted using SSL with certificates for both the server and all clients. This system works well, except that ...

Apache: Caching a DEFLATE'd file.

It seems redundant to have zlib compress a web page during every request. It is also the bottleneck of my files' response times. Is there a way to cache the zlib'd file so that it is compressed only once at each modification? Or should I just keep wishing? ...

htaccess mod_deflate does not work on shared server

Hello. I'm developing a website in PHP and I have large JS files that I want to compress. So, I added this in my .htaccess file: <FilesMatch "\.(js|css|html|htm|php|xml)$"> SetOutputFilter DEFLATE </FilesMatch> It works great on my local wamp server install but once I move the files on my shared server, the DEFLATE command does n...

Drupal - Apache's Mod_Deflate breaks CSS

We have enabled Apache's mod_deflate on our drupal site. From that point onwards, we are noticing that CSS files aren't getting loaded properly. It doesn't happen every time. Kinda random. Did anyone else notice this issue? If so, any suggested solutions? ...

Apache mod_deflate based on url parameters

Can mod_deflate module in apache be invoked based on url parameters and not for all the server requests ...

mod_deflate in Apache 2 produces?

Hi, What is the compression mechanism that mod_deflate in Apache2. Is it gzip or zlib or something else? ...

Enable mod_deflate to send Content-Encoding: gzip

EDIT I have found that the problem is actually php minify. This was sending the deflated content instead of Apache. I'll find more on this. According to High Performance Web Sites, if I enable mod_deflate in Apache 2.x, by adding the following line, it should send gzipped/delfated content: - AddOutputFilterByType DEFLATE text/html text...

Apache is not sending 304 response (if mod_deflate and AddOutputFilterByType is enabled)

I have added the following line in my Apache httpd.conf: - AddOutputFilterByType DEFLATE text/html text/css application/javascript application/x-javascript application/json I have a html file (test.html) with a script inclusion: - <script type="text/javascript" src="/test.js"></script> The problem is, every time I load test.html, t...

mod_deflate on apache causing browser to do a 200 instead of 304?

I enabled mod_deflate on Apache 2 on an Ubuntu machine and noticed that my browser doesn't cache the compressed file types on page refreshes. I used firebug's net settings to check this and verified on another computer. Under mod_deflate if I compress css and js files, the browser makes a request each time. If I turn off mod_deflate, t...

YSlow gives F grade to files compressed with mod_deflate

Hey all, I'm using mod_deflate on Apache 2.2 and the compression level is set to 9. I've fine tuned every possible aspects of the site based on the recommendations of YSlow (v2) and have managed to get an overall A grade (Total Score: 91) as well as on all categories except for: Make fewer HTTP requests (Grade C - I'm still workin...

mod_deflate vs Django GZipMiddleware, which one to use for deployment?

We're deploying Django apps with Apache 2.2 + mod_wsgi. Should we enable mod_deflate in Apache or use Django's GZipMiddleware? Which option performs better? ...

gzipped Apache response packet analysis

After enabling gzip compression in my Apache server (mod_deflate) I found consistently that end user was being served on average 200 ms slower than uncompressed responses. This was unexpected so I modified the compression directive to ONLY compress text/HTML responses, fired up wireshark and looked at the network dump before and after ...

Why Apache doesn't gzip css or js files which have parameters ?

Hi all, 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 explain me how do I make apache compress this files also. Thanks ...

PHP + gzip: close connection and continue executing

I am responsible for the backend portion of an API, written in PHP, which is primarily used by a Flash client. What happens right now is: the Flash client makes a call, the backend loads the necessary data, does any necessary processing and post processing, logging and caching and then returns the result to the client. What I would like...

Apache lags when responding to gzipped requests

For an application I'm developing, the user submits a gzipped HTTP POST request (content-encoding: GZIP) with multipart form data (content-type: multipart/form-data). I use mod_deflate as an input filter to decompress and the web request is processed in Django via mod_wsgi. Generally, everything is fine. But for certain requests (dete...

How to disable mod_deflate in apache2?

How can I disable mod_deflate in Apache2 For files in a specific directory OR For all files that have extension of, for example .py? ...

ySlow, Mod Deflate, cPanel Website Optimizer & Javascript.

Hello, 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 (almost 3x!), but ySlow is still giving me an "E" rating for "Compress Components wit...

Combining deflate and minify - am i creating overhead?

I minify my css and js files on the fly with google.codes minify. I have also set my .htaccess to use deflate on all my css and js files - the reason beeing some js files (like shadowbox and tinymce) reference to other js files in the code. So i'm compressing with apache deflate and also minify compresses some js and css files with gzip ...

Do an HTTP Post in .NET (Vb) with compressed data using deflatestream

The data that I am posting from a VB.Net client is large and I want to compress. I want to do a "POST" and the apache server supports mod_deflate. I am trying to integrate DeflateStream into my post code, however does not seem to be working. I can send the data without compression using the standard code. request.ContentType = "a...