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
6
votes
2 answers

IE scrambles script in IIS7 with static compression turned on

I am having issues with javascript files not decompressing in IIS7 and stylesheets not loading properly. I can fix this issue by turning off Static compression in IIS but this can't be a permanent solution. The issue has suddenly started happening.…
skyfoot
  • 20,629
  • 8
  • 49
  • 71
5
votes
1 answer

Node.JS http server with compression - sending variable as response

Sorry for the vague question.. but I'm not sure quite what the problem is. I have a node http server that I'm using to serve JSON data to a web app. It works great, but my JSON strings are starting to get large(10-12 MB), so I want to add…
whiteatom
  • 1,456
  • 2
  • 14
  • 33
5
votes
1 answer

Why is ScriptResource.axd compressed, even though IIS compression is disabled?

I run an ASP.NET application on IIS 6.0. Usually I have compression turned on for both dynamic and static files. However, I've turned compression off temporarily, but "ScriptResource.axd" is still sent compressed. This does not feel like a…
Noah Jacobson
  • 1,319
  • 2
  • 11
  • 13
5
votes
2 answers

Can I use net.TCP along with GZip technology in WCF

Can we use net.TCP binding to implement GZip in WCF or it can only be configured with Http and WsHttp bindings.
Maddy
  • 164
  • 2
  • 13
5
votes
2 answers

Compressing (Gzip or Deflate) Shows, Lists and views in Couchdb

It seems that couchdb automatically compress all its _attachments when requested with the correct header. But unfortunately this doesn't happen for views, show or lists. Is there any way to achieve a compression before returning the result to the…
zanona
  • 12,345
  • 25
  • 86
  • 141
5
votes
3 answers

Compress the Response has no effect

I want to zipping response in my Asp.Net web site. and I wrote this code: public static void CompressPage(HttpRequest Request, HttpResponse Response) { string acceptEncoding = Request.Headers["Accept-Encoding"]; Stream prevUncompressedStream…
Arian
  • 12,793
  • 66
  • 176
  • 300
5
votes
4 answers

how to create a simple node server that compresses static files using gzip

I've been on this for hours.. the first thing i did was follow this tutorial which had this code: var express = require('express'); var app = express(); // New call to compress content app.use(express.compress()); …
abbood
  • 23,101
  • 16
  • 132
  • 246
5
votes
2 answers

Which is the right way to enable compression on Apache?

Some people say that to enable compression you modify htaccess file: apache compression Deflate .js and .css files not compressed? http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/) Others say you need to…
dev.e.loper
  • 35,446
  • 76
  • 161
  • 247
5
votes
3 answers

gzip compression for HTTP 1.0 proxy requests on Azure Web Sites

Is there any way to get Azure Web Sites to serve gzip'ed content for requests from a HTTP 1.0 proxy like Amazon Web Services CloudFront? Consider a request like this: curl -I -H "accept-encoding: gzip,deflate,sdch" -H "Via: 1.0 {foo.cdn.net}" -0…
friism
  • 19,068
  • 5
  • 80
  • 116
5
votes
3 answers

Minify HTML files in text/html templates

I use mustache/handlebar templates. eg: I am looking to compress/minify my HTML files in the templates for the best…
cloudpre
  • 1,001
  • 2
  • 15
  • 28
5
votes
2 answers

mod_deflate in .htaccess and google pagespeed

i have a linode sever with centos 6 , as it wont support mod_gzip, i am using mod_deflate. this is my code in .htacess SetOutputFilter DEFLATE …
Serjas
  • 2,184
  • 4
  • 21
  • 35
4
votes
0 answers

Compress video while streaming using C# ASP.NET

I'm wondering if is it possible to compress the video stream using .NET (C#). I have a video on the web server and I want to compress and broadcast it to the client's app. The client's app will decompress that stream and then show the video.
Tony
  • 12,405
  • 36
  • 126
  • 226
4
votes
0 answers

How do I prevent default IIS compression on a response that is already compressed?

TLDR I have an IHttpHandler that performs compression. It works fine on its own. But then I added an IHttpModule that performs a completely unrelated task on those (and all other) responses, and now IIS is re-compressing the already-compressed…
Lobstrosity
  • 3,928
  • 29
  • 23
4
votes
1 answer

WCF message security with compression

What is the best practice for compressing the communication of a WCF service having message security enabled, that is not hosted on IIS and uses HTTP as transfer protocol? In my searching I found implementations made at channel level that apply…
Mecu Sorin
  • 101
  • 1
  • 4
4
votes
1 answer

How can I enable brotli compression for my NodeJS app built with express?

I would like to use Brotli compression for my node application built on express. I deliver content (HTML, CSS and JS) with app.use(express.static('public')). I have found the shrink-ray module which does Brotli compression perfectly. However, when I…
Stefan
  • 1,590
  • 3
  • 18
  • 33