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
12
votes
1 answer

Strategies to make a web application available offline?

We're currently building a web app (Django, Ember), and we just found that most of our potential customers require sporadic offline access to the application. What we need is not just "presenting" the app so user can navigate, caching stuff in the…
AlejandroVK
  • 7,373
  • 13
  • 54
  • 77
11
votes
3 answers

displaying cached version of webview in android

I am trying to get the HTML5 offline cached version of a website to display when the network is down inside of a webview. I have overridden onReceivedError ok, and when the network is down this method is called. Problem is that it displays the…
Marty
  • 2,965
  • 4
  • 30
  • 45
11
votes
1 answer

Service worker - network first then cache with fallback to static page

I want to add service worker to my site to offer a good offline experience to my site users. (Site back-end is PHP) I'm still new to Javascript promises and service workers, but here is what i reached so far : my index.php page has this script to…
11
votes
1 answer

Android ExoPlayer - downloading video (non DASH / HLS) and streaming at the same time

I would like to download a video that is streaming in ExoPlayer. As an aside and even before using ExoPlayer I downloaded a file from an input stream provided by HttpURLConnection and played the file from local storage. This is ok, however it does…
user1841702
  • 2,683
  • 6
  • 35
  • 53
11
votes
2 answers

Offline Firebase

I am implementing an AngularJS web app with Firebase as a backend; it should work offline, too; multi-user sync issues should be very limited, since the app - by design - will only allow new data entries when offline. I understand Firebase has…
MarcoS
  • 17,323
  • 24
  • 96
  • 174
10
votes
6 answers

Angular 4 documentation offline computer

I would like to find a local/offline version of the Angular 4 documentation (https://angular.io/docs), that I could use in an offline environement (no internet access at all, zeal and its alternatives) could not be used unfortunatly. After many…
octo-developer
  • 181
  • 1
  • 1
  • 10
10
votes
2 answers

"DOMException: Entry was not found" when putting large responses to Cache Storage

I have a problem with storing videos in Cache Storage. It works fine if the video has small size, but if its size is about 100MB, I get this error: DOMException: Entry was not found. I use the following code: fetch(videoUrl).then(function(res) { …
Oleg
  • 22,300
  • 9
  • 68
  • 84
10
votes
1 answer

Laravel: Offline Mode?

I want to make my web app (which is built with laravel) work offline...but I cant found out how to do it! I am using the "app cache" for static files, but im not sure exactly how to handle the dynamic side of the app. The app uses a database which…
David
  • 7,395
  • 5
  • 29
  • 45
10
votes
3 answers

How to develop an offline-first native Android app

We are developing a native Android app (iOS and web to follow) where users can collaboratively create an album. We want as seamless as possible experience when device is not able to connect with server. Something like mentioned in this Hoodie blog…
Sangharsh
  • 2,999
  • 2
  • 15
  • 27
10
votes
2 answers

Downloading specific maptiles to cache in OSMDroid

I am currently working on a school project and I am trying to learn the techniques on downloading OSM map tiles into the phone's local memory/cache, so that users are able to view the maps when offline. This is to be done by giving a specific…
lyk
  • 1,578
  • 5
  • 25
  • 49
9
votes
1 answer

SERVICE WORKER: The service worker navigation preload request failed with network error: net::ERR_INTERNET_DISCONNECTED in Chrome 89

I have a problem with my Service Worker. I'm currently implementing offline functionality with an offline.html site to be shown in case of network failure. I have implemented Navigation Preloads as described here:…
9
votes
1 answer

Best practices in syncing data

Context A mobile application can add/edit/delete a customer in it's own offline database. A web application can also add/edit/delete a customer in the master database on a web server. The mobile application will try to sync it's database with the…
BBQ
  • 618
  • 1
  • 7
  • 20
9
votes
1 answer

Firebase offline cache & original firebase.js source code

My question is a follow-up to this topic. I love the simplicity and performance of Firebase from what I have seen so far. As I understand, firebase.js syncs data snapshots from the server into an object in Javascript memory. However there is…
Colin Skow
  • 1,006
  • 12
  • 21
8
votes
1 answer

Should HTML 5 cache manifest work with ajax requests too?

I'm trying to get HTML 5 offline application cache working with an ASP MVC 3 website. The problem I get is that when I try to navigate to a page in offline mode, it doesn't work. I am using an action for the manifest file so that it can be…
Tom
  • 623
  • 8
  • 23
8
votes
1 answer

Should I add Cache-Control: no-cache to GET endpoints of my REST API?

When creating REST API working with POST/PUT is simple. They are non-idempotent and thus are NOT cached by browsers by default. However when creating a GET endpoint, things get tricker. I have this fear that browsers(or a particular one) by default…
Dimitry K
  • 2,236
  • 1
  • 28
  • 37
1 2
3
47 48