title: Angular 5 and Service Worker: How to exclude a particular path from ngsw-config.json
body: <p>I have <code>ngsw-config.json</code> (taken from the <a href="https://angular.io/guide/service-worker-getting-started#step-4-create-the-configuration-file-ngsw-configjson" rel="noreferrer">docs</a>):</p>
  
  <pre class="lang-js prettyprint-override"><code>    {
        "index": "/index.html",
        "assetGroups": [{
          "name": "app",
          "installMode": "prefetch",
          "resources": {
            "files": [
              "/favicon.ico",
              "/index.html"
            ],
            "versionedFiles": [
              "/*.bundle.css",
              "/*.bundle.js",
              "/*.chunk.js"
            ]
          }
        }, {
          "name": "assets",
          "installMode": "lazy",
          "updateMode": "prefetch",
          "resources": {
            "files": [
              "/assets/**"
            ]
          }
        }]
      }
  </code></pre>
  
  <p>On my site there is a link to the RSS feed <code>/api/rss</code>, which should open in a new browser tab without loading Angular app. How can I exclude it from a list of resources whose request is redirected to <code>index.html</code>?</p>
  
  <p><strong>UPD</strong>: I tried but not working the following config (see <code>!/api/rss</code>):</p>
  
  <pre class="lang-js prettyprint-override"><code>    {
        "index": "/index.html",
        "assetGroups": [{
          "name": "app",
          "installMode": "prefetch",
          "patterns": ["!/api/rss"],
          "resources": {
            "files": [
              "/favicon.ico",
              "/index.html",
              "!/api/rss"
            ],
            "versionedFiles": [
              "/*.bundle.css",
              "/*.bundle.js",
              "/*.chunk.js"
            ]
          }
        }, {
          "name": "assets",
          "installMode": "lazy",
          "updateMode": "prefetch",
          "resources": {
            "files": [
              "/assets/**"
            ]
          }
        }]
      }
  </code></pre>