Questions tagged [offline-caching]

Offline caching typically means storing locally the data obtained from a remote service to make it possible to browse the data even when there is no connection to the storage.

The details of the implementation depend on actual needs of the application; however, in any implementation there is a local cache of data obtained from the service, so some requests for the remote data may succeed in that cache. It depends on the application logic how the cache is updated, and whether and how the user may control that.

A good example of an application that uses offline caching is a desktop e-mail client. It downloads all new mail from the server to the user's computer during the sync session; the user may browse the mail and write the replies; the outgoing mail will be sent when the application perfoms the next sync.

714 questions
21
votes
2 answers

HTML5 offline caching

I've read the following Mozilla Developer article that explains how to implement HTML 5 offline resource caching in web apps. I've tried testing this locally: added the mime type to the list, created the manifest file, changed my doctype to the HTML…
Filip Dupanović
  • 32,650
  • 13
  • 84
  • 114
19
votes
2 answers

Cache asset via freshness in Angular 6 Service Worker

I'm trying to integrate the Angular Service Worker into a existing project. If I understood it correctly there are two cases how data gets cached in Angular SW. It is possible to prefetch or lazyupdate the asset data and to cache specific API calls…
Reizouko
  • 191
  • 1
  • 1
  • 6
18
votes
6 answers

how to load or retrieve a webpage in both online and offline mode in android application?

I need to load and retrieve a HTML webpage in internal or external memory of android device. What i need is to download and retrieve a webpage in android using web-view. There is lot of repeated questions similar to downloading or saving the…
17
votes
2 answers

Offline Cache of Map

I have a big need to do an offline map for my app, as it is made mostly for Thailand, where internet connection is often hard to come by. I am using OpenStreetMap right now for my MKTileOverlay but am having issues implementing it for offline use. …
user717452
  • 33
  • 14
  • 73
  • 149
16
votes
4 answers

HTML5 web app not caching when added to home screen in iOS

To be clear, the web app IS caching and is working fine offline in Mobile Safari. The problem is when it is added to the home screen on an iPhone 4s and iPad 2, both running iOS 6.0.1. It won't work offline and gives a network error to connect to…
Paul
  • 1,179
  • 3
  • 14
  • 38
15
votes
3 answers

Is Service Worker intended to replace or coexist with Appcache?

Is ServiceWorker intended to replace Appcache, or is the intention that the two will coexist? Phrased another way, is appcache about to become deprecated?
James
  • 773
  • 2
  • 18
  • 29
14
votes
7 answers

HTML5 / JS - check that application is offline

I'm testing HTML5 offline application. To do that, I'm stopping my local web server (IIS) and open application. It's loaded fine, but it failed as soon as it request server side API method. I want to prevent that and instead of $.get('/api/method')…
Alexander Beletsky
  • 19,453
  • 9
  • 63
  • 86
14
votes
2 answers

Vue Router History Mode with PWA in Offline Mode

To get history mode working with Vue-Router you need to return the contents of your main page when trying to access a route that doesn't exist. For example when you visit mypwa.com/route1 your server checks if there is a resource at route1 and if…
14
votes
7 answers

HTML5 offline video caching in mobile safari

I can't seem to get Safari on the iPhone or iPad to offline cache videos. Everything else gets cached just fine when I go offline. The video file is obviously in the manifest, but I just get the broken arrow. Works fine in Safari desktop. Any…
jj.
  • 343
  • 1
  • 7
  • 20
14
votes
5 answers

How To Use universal image loader offline caching?

Is it possible to catch offline using universal image loader? If possible, how to use it? Using configs? How To Set Download Directory manually? out of memory erroron load huge images : my codes : DisplayImageOptions defaultOptions = new…
Hossein Kurd
  • 3,184
  • 3
  • 41
  • 71
14
votes
2 answers

Synchronizing partial database model from server to client

This is more of a conceptual question not necessarily bound to any specific technologies. Lets say you got some database on a server, some REST/JSON API to access content in that database and some mobile client displaying data retrieved through the…
mibollma
  • 14,959
  • 6
  • 52
  • 69
13
votes
1 answer

Workbox: the danger of self.skipWaiting()

I use Workbox to pre-cache assets required to render the app shell, including a basic version of index.html. Workbox assumes that index.html is available in cache, otherwise, page navigation fails because I have this registered in my Service…
13
votes
1 answer

Append to array in localForage

I am using localForage to store some data on a website to make it offline. I would like to have one key and append to the value / array. So far I can only figure how to retrieve the entire key/value from storage, then append and set the entire…
Karl Stulik
  • 961
  • 1
  • 12
  • 24
13
votes
2 answers

How to cache/download google map v2 tile programmatically?

How to cache/download google map v2 tile programmatically?, is it possible? Bcos according to this prntscr.com/3cyiqf its not possible but as I have seen this link TileProvider using local tiles I thought that if Android provides TileProvider…
12
votes
1 answer

Improve client-server data sync functionality with deltas

The app I have a web app that currently uses AppCache for offline functionality since users of the system need to create documents offline. The document is first created offline and when internet access is available, the user can click "sync" which…
1
2
3
47 48