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

309 questions
19
votes
3 answers

How to zip- compress HTTP request with Spring RestTemplate?

How to gzip HTTP request, created by org.springframework.web.client.RestTemplate? I am using Spring 4.2.6 with Spring Boot 1.3.5 (Java SE, not Android or Javascript in the web browser). I am making some really big POST requests, and I want request…
Bartosz Bilicki
  • 12,599
  • 13
  • 71
  • 113
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
18
votes
1 answer

Accept-Encoding: gzip on iOS

Q1 With the iOS App kit, can I expect that Accept-Encoding: gzip will be used automatically, or do I need to explicitly ask for it to be used by setting this in the URL request somewhere? I'm currently using the call [NSData dataWithContentsOfURL:…
Benjohn
  • 13,228
  • 9
  • 65
  • 127
18
votes
2 answers

Is there any performance hit involved in choosing gzip over deflate for http compression?

We recently switched some of our sites from deflate to gzip and noticed a significant increase in cpu load on our servers.
kitsune
  • 11,516
  • 13
  • 57
  • 78
17
votes
3 answers

Compress HTTP GET Response

I am currently working on migrating few of my MVC3 Controllers to MVC4 Api Controllers. I have implemented Compression mechanism for MVC3 controller Get Method Responses by inherting ActionFilterAttribute and overriding OnActionExecutiong method.…
Pavan Josyula
  • 1,355
  • 3
  • 13
  • 25
16
votes
4 answers

Can I compress HTTP Requests using GZIP?

I am communicating to a Tomcat Server using a Java ME application on my mobile device. I was wondering if I could compress my requests/responses using Gzip to reduce the number of bytes sent over the network.
Kevin Boyd
  • 12,121
  • 28
  • 86
  • 128
15
votes
2 answers

Handling HTTP ContentEncoding "deflate"

What InputStream type should be used to handle URLConnection streams that have HTTP Content-Encoding set to deflate? For a Content-Encoding of gzip or zip I use a GZIPInputStream, no problem. For a Content-Encoding of "deflate" I have tried using…
Joel
  • 29,538
  • 35
  • 110
  • 138
15
votes
5 answers

How do I gzip webpage output with Rails?

What is the best plugin for Rails that gzips my webpage output? Edit: The company I am hosting with has stated they will not install mod_deflate.
wusher
  • 12,291
  • 22
  • 72
  • 95
14
votes
3 answers

Enable HTTP compression with ASP.NET Web API

We serve files for a website from our Asp .NET Web API: public class Startup { public void Configuration(IAppBuilder app) { var clientHostname = System.Configuration.ConfigurationManager.AppSettings["ClientHostname"]; var…
Scotty H
  • 6,432
  • 6
  • 41
  • 94
13
votes
2 answers

Difference between "x-gzip" and "gzip" for content-encoding

In request header, we have accept-encoding: gzip, but got response with encoding x-gzip. I found this note about x-gzip and gzip: Use of program names for the identification of encoding formats is not desirable and is discouraged for future…
xbob.ym
  • 501
  • 1
  • 6
  • 11
12
votes
1 answer

Windows 8 apparently removes content-encoding header from compressed HTTP responses

I'm not completely sure whether this belongs on SO, but I don't know where else to ask. While I was checking the loading speed of a web app of mine I noticed that apparently no HTTP response (no matter what type - html, css, js) is gzip/deflate…
Andre Loker
  • 8,368
  • 1
  • 23
  • 36
11
votes
2 answers

Specify multiple (gzip + brotli) httpCompression schemes in IIS7/8/8.5 and prioritise brotli

I'm trying to get the new Brotli compression scheme working in IIS using "Brotli compression module for Microsoft IIS" by iisspeed.com. The Brotli compression module itself works fine if I change the config section in…
theyetiman
  • 8,514
  • 2
  • 32
  • 41
11
votes
7 answers

ASP.NET MVC - compression + caching

I've seen a number of options for adding GZIP/DEFLATE compression to ASP.Net MVC output, but they all seem to apply the compression on-the-fly.. thus do not take advange of caching the compressed content. Any solutions for enabling caching of the…
11
votes
2 answers

MVC4 WebAPI not compressing GET responses

I'm working on a project that uses the MVC4 WebAPI (RC). The responses are not gzip compressed (dynamic compression in IIS is enabled). The responses from normal MVC controllers are compressed. Do I need a specific setting to enable gzip…
Carvellis
  • 3,992
  • 2
  • 34
  • 66
10
votes
3 answers

IIS application missing Content-Encoding - gzip in Response Header

In Firebug the request header has the following entry: Accept-Encoding: gzip, deflate But there's no: Content-Encoding: gzip In the Response Header. Regardless of anything I've tried, following a number of answers on SO and other sites, nothing…
Jacques
  • 6,936
  • 8
  • 43
  • 102
1
2
3
20 21