Questions tagged [http-compression]

HTTP compression is a capability that can be built into web servers and web clients to make better use of available bandwidth, and provide faster transmission speeds between both

HTTP compression is a capability that can be built into web servers and web clients to make better use of available bandwidth, and provide faster transmission speeds between both. HTTP data is compressed before it is sent from the server: compliant browsers will announce what methods are supported to the server before downloading the correct format; browsers that do not support compliant compression method will download uncompressed data. The most common compression schemas include gzip and deflate, however a full list of available schemas is maintained by IANA

301 questions
99
votes
12 answers

Combine and Minify Multiple CSS / JS Files

I am trying to optimize a site performance by consolidating and compressing the CSS and JS files. My question is more about the (concrete) steps on how to achieve this, given a real situation I was facing (should be typical among other developers…
moey
  • 9,619
  • 20
  • 64
  • 109
62
votes
3 answers

What is gZip compression?

I have heard a lot that one should use gZip for their webpages for faster access and downloads, and that it also saves the bandwidth. So what is this gZip compression and how does it make the downloads faster ? Does it compress the HTML and images…
Ric
  • 974
  • 1
  • 6
  • 12
60
votes
6 answers

HttpWebRequest & Native GZip Compression

When requesting a page with Gzip compression I am getting a lot of the following errors: System.IO.InvalidDataException: The CRC in GZip footer does not match the CRC calculated from the decompressed data I am using native GZipStream to…
Pat
  • 5,220
  • 1
  • 36
  • 53
58
votes
6 answers

How to enable gzip HTTP compression on Windows Azure dynamic content

I've been trying unsuccessfully to enable gzip HTTP compression on my Windows Azure hosted WCF Restful service which returns JSON only from GET and POST requests. I have tried so many things that I would have a hard time listing all of them, and I…
Steven Elliott
  • 3,146
  • 5
  • 27
  • 40
57
votes
5 answers

How do I compress a Json result from ASP.NET MVC with IIS 7.5

I'm having difficulty making IIS 7 correctly compress a Json result from ASP.NET MVC. I've enabled static and dynamic compression in IIS. I can verify with Fiddler that normal text/html and similar records are compressed. Viewing the request, the…
Gareth Saul
  • 1,317
  • 1
  • 9
  • 19
41
votes
1 answer

Why are major web sites using gzip?

I just searched about gzip and Deflate, and found out that Deflate is better. GZip or Deflate for HTTP compression Why use deflate instead of gzip for text files served by Apache? Is there any performance hit involved in choosing gzip over deflate…
Sanghyun Lee
  • 17,726
  • 18
  • 88
  • 118
31
votes
8 answers

Removing extra whitespace from generated HTML in MVC

I have an MVC application view that is generating quite a large HTML table of values (>20MB). I am compressing the view in the controller using a compression filter internal class CompressFilter : ActionFilterAttribute { public override void…
WOPR
  • 4,995
  • 5
  • 44
  • 60
24
votes
8 answers

GZip compression with WCF hosted on IIS7

Everyone, as far as I'm concerned the question is ansered in EDIT 2. Although it's only a partial solution to the IIS side of the problem, it's what I was looking for. So I'm going to add my query to the small ocean of questions on the subject.…
joniba
  • 2,771
  • 2
  • 28
  • 39
23
votes
1 answer

Configuring IIS 7.5 to send JSON responses gzipped, NO_MATCHING_CONTENT_TYPE

So I'm trying to get my app to send its JSON responses using dynamic compression and gzip. Unfortunately this isn't working. All the static compression on the server is working fine, but not dynamic. I've set this up by adding:
Sloloem
  • 1,508
  • 2
  • 13
  • 32
22
votes
4 answers

IIS as a reverse proxy - compression of rewritten response from backend server

I am implementing a reverse proxy for routing requests to a backend server. Functionally everything works correctly, however I am concerned that all responses from the backend server are transferred to the client (web browser) without…
Jakub Januszkiewicz
  • 4,228
  • 1
  • 35
  • 53
22
votes
4 answers

why png size doesn't change after using http gzip compression

I use following .htaccess to set gzip compression: AddOutputFilterByType DEFLATE text/html image/png image/jpeg text/css text/javascript Please check this url: http://www.coinex.com/cn/silver_panda/proof/china_1984_27_gram_silver_panda_coin/ the…
Mark Ma
  • 1,244
  • 3
  • 18
  • 31
21
votes
1 answer

SDCH compression for Node?

Is there a SDCH (Shared Dictionary Compression over HTTP) library for Node? (Or any other implementations for that matter?) A quick search on npm yielded nothing.
josh3736
  • 124,335
  • 26
  • 203
  • 248
21
votes
4 answers

How to host static content pre-compressed in apache?

I host a JavaScript game which basically consists of an .html and a .data file. If I compress them with gzip, their size shrinks to 25%. So I want to do that. I'm not 100% sure, but I think using mod_gzip or mod_deflate does the compression…
marc40000
  • 2,888
  • 8
  • 36
  • 60
20
votes
2 answers

Enable compression on facebook sdk served files to optimize site

I was running page speed insights on my website and was given the following result: Compressing resources with gzip or deflate can reduce the number of bytes sent over the network. Enable compression for the following resources to reduce their…
18
votes
2 answers

Dynamic compression doesn't seem to be used in IIS 7.5

I currently have both static and dynamic compression configured. The static compression is working, however the dynamic compression, when checked through YSlow and Fiddler, is not working. In my applicationHost.config, I have the following…
Justin Hof
  • 181
  • 1
  • 1
  • 4
1
2 3
20 21