title: Angular Service Worker SwUpdate.available not triggered
body: <p>I'm having a hard time integrating angulars service worker into my application. I followed the guide and it works so far. I can create a shortcut on my homescreen and launch into my app. The problem is that my app somehow doesn't update. If I change the name of a button, build the app and put it onto my server the app still shows the old version until I hit F5 (restarting the app doesn't help either).</p>
  
  <p>I tried to put the following code into my ngOnInot of my app but it didn't help</p>
  
  <pre><code>ngOnInit() {
  if (this._SwUpdate.isEnabled) {
  
    setInterval( () =&gt; {
      this._SwUpdate.checkForUpdate().then(() =&gt; console.log('checking for updates'));
    }, this.updateInterval);
  
    this._SwUpdate.available.subscribe(() =&gt; {
  
      console.log('update found');
  
      this._SwUpdate.activateUpdate().then(() =&gt; {
        console.log('updated');
        window.location.reload();
      });
  
    });
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>The app is running on my apache2 linux machine. Is my apache caching something or why doesn't my app realize that there is a new version?</p>
  
  <p>Thanks in advance for your help :)</p>
  
  <p>Edit:</p>
  
  <p>My ngsw-config.json</p>
  
  <pre><code>{
    "index": "/index.html",
    "assetGroups": [{
      "name": "roomPlan",
      "installMode": "prefetch",
      "resources": {
        "files": [
          "/index.html",
          "/*.css",
          "/*.js"
        ]
      }
    }, {
      "name": "assets",
      "installMode": "lazy",
      "updateMode": "prefetch",
      "resources": {
        "files": [
          "/assets/**"
        ]
      }
    }]
  }
  </code></pre>
  
  <p>Edit 2:</p>
  
  <p>It works if I run the app local using "http-server" but when I copy the files over to my apache it doesn't detect the update. In the networking tab I can see that the interval works, the app gets a new "ngsw.json" from the server every 3 seconds. If I update my app I can see that there are new hash values inside of the response for "ngsw.json". After that the browser loads the new "index.html" and "main.***.js" from my server but the app doesn't apply the new version. According to my code it should say "update found" but nothing happens.</p>