Using LightHouse to validate your PWA

Official 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 mandatory, and all the redirections have to be done to HTTPS, so you have to 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>
 
Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.