Angular PWA not working when Offline checked

700 views
Skip to first unread message

Binh GIIK

unread,
Feb 24, 2019, 2:02:03 PM2/24/19
to Angular and AngularJS discussion
Hi all,
I hope some of you can help me with this.
I've followed the instruction on this page in order to build PWA but when I check the Offline box, Refresh the page, it shows Page not found, ERR_INTERNET_DISCONNECTED
All help is very much appreciated.

Sander Elias

unread,
Feb 25, 2019, 8:25:15 AM2/25/19
to Angular and AngularJS discussion
Hi Binh,

Are you on an SSL connection? Also, 'ng serve' will not work for service workers. 
(you can load a service-worker without SSL only on localhost)

Regards
Sander

Binh GIIK

unread,
Feb 26, 2019, 9:22:13 AM2/26/19
to ang...@googlegroups.com
Thanks for the hint, Sander. I appreciate it.
I double checked my cmd. I did type http-server -p 8080 -c-1 dist/MyProjectNameHere
The Chrome Incognito browser launched http://localhost:8080. Then I check the Offline box, Refresh the page=>No Internet error. I reset my PC a few times, repeat all the steps again with a brand new project, still having the same issue.

image.png

image.png
image.png

--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Sander Elias

unread,
Feb 26, 2019, 11:57:49 AM2/26/19
to Angular and AngularJS discussion
Hi Binh,

Is your app available in a GitHub (or other) repo, so I can give it a spin?

Regards
Sander

Pritesh Bonde

unread,
Apr 12, 2021, 12:56:22 AM4/12/21
to Angular and AngularJS discussion
Hello
Did you found the solution? If yes can you please share it with me. I am also facing the same issue for local as well for the app deployed on azure.

Reply all
Reply to author
Forward
0 new messages