Using LightHouse to validate your PWA

Unofficial Content
This documentation is valid for:

Lighthouse is an automated tool for improving the quality of your Progressive Web Apps. It can be easily run from Chrome DevTools.

Running under Https is a "must", and all the redirections have to be done to Https, so you can add the following rule for redirection in the web.config file:

 <system.webServer>
    ...
    <rewrite>
      <rules>
        <clear />
        <rule name="Redirect to https" stopProcessing="true">
          <match url=".*" />
          <conditions>
            <add input="{HTTPS}" pattern="off" ignoreCase="true" />
          </conditions>
          <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>