LCJ
LCJ

Reputation: 22652

How to configure IIS for sending compressed JSON

I have a ASP.Net 2.0 website hosted in IIS6. It has webmethod defined in code-behind classes. These webmethods are accessed by jQuery Ajax.

Now, when I host the website in a gzip enabled website, we are getting content-length as zero in the client. Without compression the website works fine.

I read in the article Enabling dynamic compression (gzip, deflate) about ApplicationHost.config and following configuration – but it is for IIS7.

enter image description here

What is the command / tool / configuration to enable JSON compression in IIS6?

Upvotes: 0

Views: 66

Answers (1)

Luizgrs
Luizgrs

Reputation: 4873

Back in IIS6, compression was determined by its metabase and not through ASP.NET configuration, another difference is that it was by file extensions and not mime types.

You can read about it in Using HTTP Compression for Faster Downloads (IIS 6.0)

Upvotes: 1

Related Questions