html5 - Excluding map tiles from appcache -


i trying implement offline use through appcache site corvallistrails.org. of images , resources hosting cache perfectly, when attempt use site map tiles opencyclemap.org fail load. not specified in .appcache file. have added entries *, http:/*, https://*, *.opencyclemap.org/*, , opencyclemap.org/* under network: no avail. research has turned nothing. want force browser load map tiles through network every time. kind of entry put in manifest produce such result?

network section ask resources newer availible offline (you can use * pattern there).

cache section ask resources cached, must put there cached resources , can't use * pattern, because browser can't resolve resources must download. there can set resources domain http://tile.example.com/zoom/x/y.png.

fallback section ask resources must mapped when application offline, can set there self host resorces.

if want make map offline must put need tiles cache section, it's match tiles , take lot time download (thousands tiles , 20-50 mb million city). can't use localstorage because have little size (5 mb without subdomians , iframes hacks). made test offline indexeddb , web sql: https://github.com/tbicr/offlinemap, there not optimal storage implementation.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -