Ionic serve cache problem?

I still have this problem. After every change I make it loads an older version of my app. My problem is exactly like the issue @reedrichards posted. On April 6 @danbucholtz posted that it should be fixed in version 1.3.1, but I’m still having problems after updating to (I think) the latest versions. I’m using this versions right now:

“dependencies”: {
"@angular/common": “4.1.2”,
"@angular/compiler": “4.1.2”,
"@angular/compiler-cli": “4.1.2”,
"@angular/core": “4.1.2”,
"@angular/forms": “4.1.2”,
"@angular/http": “4.1.2”,
"@angular/platform-browser": “4.1.2”,
"@angular/platform-browser-dynamic": “4.1.2”,
"@ionic-native/core": “3.9.1”,
"@ionic-native/splash-screen": “3.9.1”,
"@ionic-native/status-bar": “3.9.1”,
"@ionic/storage": “2.0.1”,
“angularfire2”: “^4.0.0-rc0”,
“firebase”: “^3.9.0”,
“ionic-angular”: “^3.3.0”,
“ionicons”: “3.0.0”,
“rxjs”: “5.1.1”,
“sw-toolbox”: “3.4.0”,
“zone.js”: “^0.8.10”
},
“devDependencies”: {
"@ionic/app-scripts": “^1.3.7”,
“typescript”: “~2.2.1”
},

Did I miss something? How can I fix this annoying problem?

[update]
Looks like it has something to do with the service worker. Stopping and unsubscribing from the service worker using chrome://serviceworker-internals/ did the trick for me. Found in it this topic.

2 Likes