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

Fetch raw gzip-encoded web page into Uint8Array

I'm using fetch to retrieve a URL. This is in code that is acting as a proxy and if it gets a response with content-encoding: gzip, I want to get the raw data so I can send it back to the consumer without decoding it. But I see no way to do this. …
2
votes
2 answers

How to mix compression and caching in HttpWebRequest?

I have a c# client talking to a cherrypy(http/rest) webservice. The problem is i can't both turn on compression and caching at the same time. request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate; By leaving out…
AngelBlaZe
  • 409
  • 4
  • 9
2
votes
1 answer

What options are there to selectively enable or disable IIS 6 compression

Unlike IIS7, in IIS6 the 'Compress application files' and 'Compress Static files' options are server wide so they apply to every website and virtual directory. I recently enabled it server wide and I'm beginning to see more and more places where…
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
2
votes
1 answer

How to enable compression using IIS

I have followed this document and have enabled both Dynamic and Static compression for my website. But when I test the website here, the compression is not enabled. I have verified the HttpCompression:
Hooman Bahreini
  • 14,480
  • 11
  • 70
  • 137
2
votes
1 answer

How to compress all files with IIS

IIS compression has been enabled: The following is the httpCompression tag of web.config:
Hong
  • 17,643
  • 21
  • 81
  • 142
2
votes
0 answers

IIS dynamic compression for multipart/related

I'm using WCF and STS for security. I enabled IIS compression for the dynamic type thus
R4cOOn
  • 2,340
  • 2
  • 30
  • 41
2
votes
0 answers

Apache statically and dynamically compressed content

I have a website which has both dynamically generated (PHP) and static content. Setting up Apache to transparently compress everything in accordance with content negotiation is a trifle. However, I am interested in not compressing static content…
user771921
  • 141
  • 4
2
votes
1 answer

Is it possible to use JS to check which encoding schemes are supported, without hitting a server?

Due to a poorly configured CDN that I don't have control over, I can't access the accept-encoding header from the server. Is it possible for client-side JS to determine which encoding schemes (gzip, br) are supported? Then, I can make requests like…
Leo Jiang
  • 24,497
  • 49
  • 154
  • 284
2
votes
3 answers

Pre-compress static files in IIS 6

I am implementing Gzip compression for CSS and JS files on my site and just need to double check something. Is the file compressed on every request? or is it collected and sent from the Temporary folder (if the file exists)? I just want to be sure…
tif
  • 1,109
  • 2
  • 12
  • 32
2
votes
2 answers

How to configure gzip compression in webpack of angular project?

Gzip compression doesn't work in a angular 5 project which uses webpack 3.10.0 after hosting in iis. The plugins I have tried are compression-webpack-plugin@1.0.0 and brotli-gzip-webpack-plugin. Shown below is a sample code and the plugins are…
2
votes
0 answers

When using response compression in c#, will later use of IIS compression cause problems?

I am using a webservice as the endpoint for an XHR request, and planning on gzip/deflate compressing the response for compatible browsers. I am using code based on…
penguat
  • 1,337
  • 1
  • 13
  • 25
2
votes
1 answer

When do I use gzip compression with dynamic pages?

As a general rule, when is enabling gzip compression for IIS a good idea? Take for example the following cases: Static Page ASP Page that has many static elements and a few dynamic elements ASP Page that has a few static elements and many dynamic…
mrtsherman
  • 39,342
  • 23
  • 87
  • 111
2
votes
1 answer

Spring WS request GZIP compression

I'm building a Spring Boot application that behaves as a client to another web service. Using WebServiceTemplate to send SOAP messages and I have a case where a request is big enough that the target service requires it to be gzip compressed. As I…
2
votes
2 answers

Does compressing HTTP response is useless when Content-Length is lower than 1K?

I wrote a web service that respond JSON content lower than 1K. Which one of this compression strategy is the best? gzip this content by the reverse-proxy as any other text ressource? Add a rule to not compress ressources under a threshold? I think…
BenC
  • 1,647
  • 18
  • 25
2
votes
0 answers

Response.Filter vs dynamic compression (IIS 7.5+)

In the project we needed to modify the response that is generated by the ASP.NET pages/web-services/doesn't-matter-what. If you search for the best approach to do this, it's to create a HttpModule and there add your own stream to Response.Filter.…