Polymer / polymer-starter-kit

A starting point for Polymer apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image subfolders not loaded in offline mode

AliMD opened this issue · comments

Description

When i make folder in image or use manifest/* in my project, images not load in offline mode
Because in sw-precache-config.js just images/* cached!

Expected outcome

Actual outcome

Live Demo

Steps to reproduce

Browsers Affected

  • Chrome
  • Edge
  • Firefox
  • IE 11
  • Safari 8
  • Safari 9

It's really up to your use case to determine which images to precache - you have to balance having important images available offline with not hogging users' storage with images that are never used. Pre-caching the entire images directory seems excessive, so I'm actually going to remove that line from sw-precache-config.js and leave it up to the developer to add images here.

Many people don't know this and usually have issue on this, i'm have many confusing to finding issue!
Could you please change default to all subdirectory.
Developers can optimize and change it for himself