IIS static content compression not working

I try to make static content compression work for IIS but it's not working. I'm using Windows Server 2012 R2 Standard, and IIS 8.5.9600.16384.

I installed both static and dynamic content compression, and as you can see both are checked:

enter image description here

Also I went to configuration editor, and there I can see that JavaScript should be compressed:

enter image description here

But still I get no Content-Encoding HTTP header field in my response. What should I do?

Upvotes: 1

Views: 1700

Answers (1)

Jokies Ding
Jokies Ding

Reputation: 3504

Could you get dynamic compression work when you deploy a simple webform application in new IIS site?

As Lex said, Enable Failed request tracing would be the best way to troubleshooting this issue.

1.Install failed request tracing in add role and feature->Web Server->health and diagnostics->tracing

2.Open IIS manager->go to your site node->failed request tracing->add..->all content->status code 200->ensure WWW Server/compression has been checked->finish.

3.Edite site tracing->Enable

4.Open log file in C:\inetpub\logs\FailedReqLogFiles\W3SVC and check dynamic compression procedure.

enter image description here https://blogs.msdn.microsoft.com/benjaminperkins/2016/06/15/lab-4-install-and-configure-failed-request-tracing/

Upvotes: 2

Related Questions