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
7
votes
1 answer

gzip compression not working even though allowed in applicationHost.config

I want to enable gzip compression for my site running on ASP.NET4.5 with IIS7.5, but can't get it to compress. I'm on shared hosting, so I can't set this in IIS directly. applicationHost.config I changed this from Deny to Allow (I read here that I…
Adam
  • 6,041
  • 36
  • 120
  • 208
7
votes
3 answers

Configuring httpCompression settings for WIndows Azure Web Sites

Is there anyway of controlling the compression settings in windows azure web sites. I want to enable dynamic json compression, and can successfully do this with on premise sites by configuring the applicationHosts.config file accordingly. Are there…
Kramer00
  • 1,167
  • 3
  • 12
  • 34
6
votes
4 answers

"Content-encoding" header disappears from HttpHandler response if an exception occurs

I have a custom HttpHandler in which I manually enable output compression, like so: context.Response.AppendHeader("Content-encoding", "gzip"); context.Response.Filter = new GZipStream(context.Response.Filter, CompressionMode.Compress); This works…
David Mills
  • 2,385
  • 1
  • 22
  • 25
6
votes
4 answers

IIS understand static files in MVC as dynamic content

Playing with the httpCompression I relalized that IIS understand static files in MVC as dynamic content, so even if you tick the "Enable static content compression", but don't tick "Enable dynamic content compression", IIS will return the .css and…
vtortola
  • 34,709
  • 29
  • 161
  • 263
6
votes
1 answer

OutputCache and a custom gzip compression filter

I have this custom filter for compress the output of my pages: public class EnableCompressionAttribute : ActionFilterAttribute { const CompressionMode compress = CompressionMode.Compress; public override void…
vtortola
  • 34,709
  • 29
  • 161
  • 263
6
votes
1 answer

IIS 7.X Static Compression - Not Frequently Hit

How do I force IIS 7.X to do static compression regardless of how frequently the static file is accessed? If I refresh the page in Firefox with caching disabled, that is the only way it does the static compression because of some "Not Frequently…
jjxtra
  • 20,415
  • 16
  • 100
  • 140
6
votes
1 answer

Springboot gzip compressing responses having size less than min-response-size configured

I am trying to implement Gzip response compression in my Springboot Rest API I am using below configuration in my application.properties # Enable response compression server.compression.enabled=true # The comma-separated list of mime types that…
Shubham Goyal
  • 83
  • 2
  • 5
6
votes
2 answers

mod_deflate or mod_gzip, which should be used?

mod_deflate or mod_gzip, which should be used? I read mod_gzip on better explained but want to know extra about mod_deflate.
webkul
  • 2,836
  • 10
  • 47
  • 61
6
votes
3 answers

Tomcat8 Gzip Compression for CSS, JS

I am using tomcat8 and trying to simulate GZIP compression of CSS and JS. I have added the entry in server.xml and follows
6
votes
3 answers

Compressing Undertow server responses

i have a programmatic Undertow server setup. Static content is served by Undertow as well, without a reverse proxy. Java code for Undertow startup looks like this: ResourceManager resourceManager = new FileResourceManager(new…
siphiuel
  • 3,480
  • 4
  • 31
  • 34
6
votes
2 answers

How reliable is HTTP compression using gzip?

YSlow has suggested that I use HTTP compression to improve the performance of my site. However, as noted by Yahoo that are some problems. There are known issues with browsers and proxies that may cause a mismatch in what the browser expects and…
Liam
  • 19,819
  • 24
  • 83
  • 123
6
votes
3 answers

Accept-Encoding headers being sent by browser but not received by server

I have been trying to debug this for weeks. All of the browsers on all of the clients on my home network are sending 'Accept-Encoding: gzip,deflate'. However, that header is somehow, somewhere being dropped before the request makes it to a web…
Daniel Jacobs
  • 303
  • 3
  • 8
6
votes
1 answer

IE11 GZIP slow for AJAX requests

So this is a bit of a weird issue and I'm really searching for some best practices and potential solutions here. Background: I'm working on a very substantial enterprise application. It's a single page app, and aside from initial load, there are no…
6
votes
2 answers

gzip without server support?

I have written a CSS server which does minimization and basic parsing/var replacement. The server is using node.js. I am wanting to gzip my response from this server. As told in IRC, node.js does not currently have a gzip lib, so I am attempting to…
Spot
  • 7,962
  • 9
  • 46
  • 55
6
votes
3 answers

Why Chrome prompts for downloading a page as a .gz file on hyperlinks but not I enter the URL manually?

I just discovered a very strange behaviour on Chrome while trying to accesss some pages. It will prompt to download them as .gz files instead of loading them. This happens only with current Chrome and on all platforms. When the page is properly…
sorin
  • 161,544
  • 178
  • 535
  • 806