In that case, you can simply empty your browser cache or call directly the address_to_your_awesome_app/#/index.html to force the reload of the HTML page that contains the main.dart.js file.

This is just for testing environments and will not work consistently in production. For that, you’ll have to control caching on the server-side when you serve your files.

Your issue might originate from the new flutter_service_worker.js. You can remove the Service Worker temporarily or modify it if its caching strategy puts a break on your development flow.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store