Ionic Framework - ionic-app-scripts live reload shows old content

A solution for live reload "bug" while using ionic-app-scripts which causes showing old content after automatic page refresh.

If you are developing Ionic PWA (Progressive Web App) you may encounter this strange and annoying live reload bug. Your content is updated only after refreshing page manually after the live reload triggers first page refresh.

This behavior may be caused by the Service Workers inside your browser!

Just update them after each page reload by checking an option Update on reload in Google Chrome Developer Tools inside Application > Service Workers:


That should solve it, at least in my case that helps instantly.

Sources and many more... (may or may be not related to that issue)