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
2
votes
2 answers

What methods are there to store data offline in a web-app

I need an offline caching system where my app can store about 0.5 MB of data. It is preferred that there is no interaction required by the user, but small amount of user interaction might be acceptable Currently, Microsoft's Silverlight is being…
Billy Moon
  • 57,113
  • 24
  • 136
  • 237
2
votes
1 answer

Using YUI3 offline cache for html4 and html5

I've been searching for an answer for my problem. I'm using YUI3 to develop a web application and I need to use the offline cache, the problem is; What will happen if someone access my YUI3 offline cache with old-type browser without html5 support?…
V Setyawan
  • 76
  • 6
2
votes
1 answer

What are my offline and socket options for a modern web application?

So I have been thinking about building quite a complex application. The idea of building an html5 version has become quite an attractive possibility. I have a few questions about it first however. My first concern is how reliable the offline…
Josh Mc
  • 9,911
  • 8
  • 53
  • 66
2
votes
2 answers

HTML5 LocalStorage limit hit but I only use offline cache

I'm developing an offline web-app for a client of ours, designed to run on an iPad in airplane mode, mounted on a stand. It has no server-side dynamic pages, only a static HTML page, many JavaScript components to handle navigation and interactivity,…
Cyrille
  • 25,014
  • 12
  • 67
  • 90
2
votes
4 answers

Application cache: strange behaviour on iPad

I'm making a website where a user can say which items he wants to cache. Based on this, a manifest file is generated. By doing this the user can still browse in the website when he is offline. This is all working fine in google chrome. But on iPad…
2
votes
1 answer

HTML5 application cache on iPad offline app - not working if server is unavailable?

I'm developing a small HTML5 web application for iPad that is intended to work in fullscreen mode (ie. it has the proprietary Apple meta tag, it is added to Home Screen): The application…
Neo
  • 1,176
  • 2
  • 10
  • 15
2
votes
1 answer

How long time is data cached with GA plugin in Unity apps

We have an Android app built using Unity and the Google Analytics GAv4 plugin for Unity. The use-case is that the users might use the app for days without internet, and when they do connect to internet again our expectations is that the data is…
2
votes
2 answers

Cache persistance in PWA in iOS

Have a PWA that works fine with network connection. Added a service worker and it works with no connection IF the PWA had been opened at some point before loss of network connection. So far, so good. If I force quite the PWA (swipe up on the…
2
votes
1 answer

How to preload js workers and wasm scripts for offline use (pwa)?

I would like to force the browser to preload a JavaScript worker as well as a WebAssembly script. When loaded, I have a ServiceWorker that puts these scripts in the CacheStorage. For the images, I use the following tag and this works…
2
votes
0 answers

HTML5 offline cache works differently in different browsers, but always fails

I am trying to get a grasp on how HTML5 offline cache works. I've read various tutorials and they all have tiny variations on what the manifest file must look like. I set up a page with a cache manifest like this: CACHE…
Omar
  • 21
  • 2
2
votes
1 answer

HTML5 Caching Javascript files for online and offline use

I posted a question about why my $.getJSON had stopped but I think the question is a bit wider now. I have a mobile HTML5 app that does Ajax requests to a php web app (on the same domain). When there is an internet connection ie. navigator.onLine…
iamjonesy
  • 24,732
  • 40
  • 139
  • 206
2
votes
1 answer

Should I use AsyncStorage for large amounts of data?

We are wanting to implement an offline mode for our react-native application. We will be working with quite large amount of data (aprox. 40-50mb). It is an array of aprox. 16000 objects. As far as I know, there are two ways to save this data. Using…
2
votes
1 answer

Offline authentication flow in Progressive web app

What is the best approach for authentication flow in PWA when its offline. I am using OIDC client js for online authentication flow.
2
votes
1 answer

Service Worker for Caching Offline files

We want to make a website available offline, we started with App Cache but found this has been discontinued with Service Worker. I found some help on setting up a service worker on a test site I created however it still does not seem to work. It…
2
votes
1 answer

How can RxJava2's onErrorResumeNext counterpart in Kotlin Flow that returns another flow be implemented?

I want to implement offline-last approach with Flow, first try to fetch data from remote source if it fails, for instance Retrofit throwing network exception, i want to fetch data from local source with the code below return flow {…
Thracian
  • 43,021
  • 16
  • 133
  • 222