0

When I do the test with PageSpeed, a section appears indicating that I must enable text compression.

I am using an IIS server, which has already configured the option to compress, but how do I enable it for the web I am testing?

In the list of files that I must enable, the domain appears, two CSS files and one JS file.

Thank you

Stefan Neacsu
  • 653
  • 3
  • 12

2 Answers2

0

The section indicating that you must use text compression is asking you to enable one of the following: gzip, deflate, br etc.

You are looking to enable gzip compression on your server there is a thorough set of answers located at the following link (links to a stack overflow question with multiple good answers on how to enable gzip on IIS):-

How to enable GZIP compression in IIS 7.5

GrahamTheDev
  • 22,724
  • 2
  • 32
  • 64
0

According to official document, you only have to enable http static compression for your website.

To ensure IIS will compress FILE correctly, please ensure IIS static content feature has been installed(IIS->World wide web Services->Common HTTP Feature->Static Content). Please go to web browser developer tool and check what's the content type is.

enter image description here

Secondly, please install IIS compression in IIS->World wide web service->Performance feature->Static Content Compression.

After installing IIS, please ensure IIS manager->site level->Compression->Static Content Compression has been checked.

Then Please access your website and check whether Content-Encoding has been displayed in response header.

enter image description here

If the response header is not displayed there, please check whether your content type has been set in IIS manager->configuration editor->system.webServer/httpCompression->staticTypes Collection.

Jokies Ding
  • 3,374
  • 1
  • 5
  • 10