module.exports = {
  staticFileGlobs: [
    'manifest.json',
    'bower_components/webcomponentsjs/*.js',
    'images/*'
  ],
  runtimeCaching: [
    {
      urlPattern: /\/data\/images\/.*/,
      handler: 'cacheFirst',
      options: {
        cache: {
          maxEntries: 200,
          name: 'items-cache'
        }
      }
    }
  ]
};

module.exports = {
  navigateFallbackWhitelist: [/^\/nothing\//],
  staticFileGlobs: [
    'manifest.json',
    'bower_components/webcomponentsjs/*.js',
    'images/*'
  ],
  runtimeCaching: [
    {
      urlPattern: /\/data\/images\/.*/,
      handler: 'cacheFirst',
      options: {
        cache: {
          maxEntries: 200,
          name: 'items-cache'
        }
      }
    },
    {
      urlPattern: /\/api\//,
      handler: 'networkFirst'
    },
    {
      urlPattern: /\/omniauth\//,
      handler: 'networkOnly'
    }
  ]
};

Fix : exclude api from whitelist
Fix : exclude api from whitelist
