title: service worker and sw precache with angular universal
body: <p>I used sw precache with service worker.I cached only browser folder in service worker.So that server side rendering not working in service worker.can anyone pls help me to solve this.if ssr working service worker not working and vice versa</p>
  
  <p>below is my sw precache config.json</p>
  
  <pre><code>module.exports = {
  navigateFallback: '/index.html',
  stripPrefix: 'dist/browser',
  root: 'dist/browser',
  staticFileGlobs: [
  
  'dist/browser/index.html',
  'dist/browser/**.js',
  'dist/browser/**.css',
  'dist/browser/**.ico',
  'dist/browser/assets/images/**.jpg',
  'dist/browser/assets/images/**.png',
  'dist/browser/assets/images/**.gif',
  'dist/browser/assets/js/**/**.js',
  'dist/browser/assets/js/**.js',
  'dist/browser/assets/css/**.css'
  
  
   ],
  
  runtimeCaching: [{
  urlPattern: /^https:\/\/tg\.s3\.rfyfg\.com\//,
  handler: 'cacheFirst'
  }]
  };
  </code></pre>
  
  <p>Thanks</p>