Pwa-module: Why this lib such awesome ?

Created on 22 Mar 2018  路  8Comments  路  Source: nuxt-community/pwa-module

Sorry but I had to leave some :heart: to contributors here,

This module is working great, my web app PWA audit goes from 12% to 82% after just installing and following the setup guide

image

Thanks all & great job :+1:

This question is available on Nuxt.js community (#c34)

Most helpful comment

I owe you this :100:

image

Thanks @manniL , really :+1:

All 8 comments

It should even be pushed to 100 :thinking:
What is missing?

image

The first one is something I have to fix, when JS is not allowed (maybe for some screen readers for blind people) my html is empty :
image
In this case, my website is just a big blank page, so I should add some content to explain that it cannot run without JS.

The second point is about server side configuration, HTTP traffic should indeed be redirected to HTTPS.

I'm not sure if pwa-module could do something for the first point ?

HTTPS redirection is something you need to do yourself.

About fallback content: This is easily possible through meta-data in the nuxt config. You need to add noscript content. I did it like this

About fallback content: This is easily possible through meta-data in the nuxt config. You need to add noscript content. I did it like this

Totally worked :tada: thanks @manniL !

I'm using netlify.com with free open source plan, but they dont do http->https redirection without paid domain apparently

Also I tried to do this in JS, it works with document.location.protocol = 'https' but does not fool Google Audits :yum:

image

This really should be done server side

You are welcome :relaxed:

Ah, alright! I use my own VPS for hosting, so it's easy to configure NGINX or Apache to do it. But apparently you can force ssl on netlify even without custom domains (see Redirects). :thinking:

I owe you this :100:

image

Thanks @manniL , really :+1:

No problem @Shuunen :relaxed: Glad I was able to help!

Thanks, @Shuunen for your kind words and @manniL for nice help. Closing as it seems fixed.

Was this page helpful?
0 / 5 - 0 ratings