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
8
votes
0 answers

Django REST api offline synchronization with PouchDB

I am developing an application which is used by multiple clients and the main goal of the app is to be used online. But a specific requirement is, it should be able to work offline too (only for a single client(s) in an emergency situation and for…
8
votes
0 answers

Implements Glide offline mode

I'm writing an Android app and I need to have an offline mode there, that means that I need to download all images from the back-end and in case I have no Internet connection I will be able to show them to the user. I read the official documentation…
Maxim
  • 101
  • 1
  • 6
8
votes
2 answers

IndexedDB to store audio

Is it possible to use IndexedDB on a web page to store audio? Currently trying out the Cache API, but looking for something that can be a little more persistent.
austinh
  • 1,061
  • 6
  • 13
  • 34
8
votes
1 answer

IE 11 browser displaying 'You're not connected to a network' page while trying to access an App Cached offline page

Background: I have built a web page that should work even offline. This page is made by following 'AppCache' guidelines. My web browser is an IE11 on a HP windows 8 tablet. When I hit the direct URL of the page on the physical server(Oracle…
8
votes
2 answers

Why isn't the browser loading cdn file from cache?

Here is a very simple example to illustrate my question using JQuery from a CDN to modify the page:

Hello Dean!

gabe
  • 2,521
  • 2
  • 25
  • 37
8
votes
1 answer

AFNetworking (AFHttpClient) offline mode not working with NSURLRequestReturnCacheDataDontLoad policy

I am using AFNetworking in my app and try to make it work in the offline mode by use the cached data if available. I expected after I set the request cache policy to NSURLRequestReturnCacheDataDontLoad, getPath:parameters:success:failure: will…
Robert Mao
  • 1,911
  • 22
  • 24
8
votes
0 answers

Firefox does not load page from offline cache manifest, but works fine on Chrome (+ cache manifest troubleshooting tips)

This is basically identical to this SO questions which has not been answered: Offline Web App not caching on Firefox but ok on Chrome I'm experiencing the same problem and I'll provide a bit more information because it might help someone trying to…
7
votes
1 answer

Where does Google Music store the "offline tracks"?

I have about 8 gigs of music stored within Google Music, and I recently got sick of streaming (and risking data charges), so I painstakingly allowed it to be stored offline. So my fresh 16 gig SD card now only had 8 gigs left. Then, I flashed a new…
user766650
7
votes
3 answers

Omit current page from HTML5 offline appcache but use cached resources

For performance purposes, I want to have some of my web pages use resources that have been cached for offline use (images, CSS, etc.) but to not have the page itself cached as the content will be generated dynamically. One way to do this would be to…
Trott
  • 66,479
  • 23
  • 173
  • 212
7
votes
5 answers

HTML 5 offline storage cache manifest not working

I'm trying to get HTML5 offline storage working in a basic way. I read the information on DiveIntoHTML5 and it seems to make sense, but it just doesn't seem to be working for me. I wondered if someone could help me to debug this. Basically I've…
Dan
  • 5,836
  • 22
  • 86
  • 140
7
votes
3 answers

How do I cache other routes for offline browsing?

I am setting up a Progressive Web App supporting offline browsing. I have already set up offline browsing for my main route ('domainsample.com/') and it responds 200 even if offline. But when I navigate to other routes ('domainsample.com/about') I…
7
votes
2 answers

Angular 8 PWA assetGroups offline not working

I made an Angular 8.1.0 PWA and when I test it offline on my mobile device the images and font in the assetGroups are not loading. Here an example error for the logo image from chrome://inspect from the installed app on the offline mobile device,…
miholzi
  • 922
  • 1
  • 14
  • 36
7
votes
2 answers

Flutter Firebase Database persistence not working

I am using the firebase_database plugin in version 1.0.1 with flutter currently testing on android. I access the database with a singleton. GlobalFBInstance._internal() { final firebaseInstance = FirebaseDatabase.instance; …
7
votes
1 answer

Service Worker not registering on gh-pages hosted website

The service worker is registered and works fine on the vscode localhost but not on the gh-pages hosted site. Screenshot of localhost sw. As you can see the sw opens the cache but then fails to register with a type error in promise. While sometimes…
soda
  • 443
  • 6
  • 19
7
votes
2 answers

How to copy Gradle caches to another offline machine?

I've got two Ubuntu 16.04 machines. One is connected to the Internet, while the other one is fully offline. I'd like to build an Android project on the offline machine. On the online machine, it builds successfully. So, I've copied the entire…
frogatto
  • 28,539
  • 11
  • 83
  • 129