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

Using RPC serialization/deserialization mechanism built in GWT

I am developing GWT offline application using HTML5 Local Storage. I would like to cache/store the transfer objects using com.google.gwt.storage.client.Storage (introduced in version 2.3). But the problem is that as for now (version 2.3) the Storage…
AKFA
  • 170
  • 11
5
votes
2 answers

Using Ajax with Offline Cache

I'm working on an offline-capable application and I'd like to do an ajax call to $.get() a file on the domain that I will be caching. Will the call still work if I'm offline? I would presume no, but I wondered if I included the static page in the…
doremi
  • 14,921
  • 30
  • 93
  • 148
5
votes
0 answers

Caching audio stream while playing it in flutter

I am looked at several audio libs, that support play audio file by url ,but no one give access to audio data, so that i can cache it while playing. So my question is - Can i cache streaming audio data to file in device? I found another way in…
kevrat
  • 51
  • 3
5
votes
1 answer

Background sync not firing event in serviceworker

My sync event not firing, am using chrome webserver to serve a page on my desktop PC on localhost:5000 and using a fetch api to POST data to the local development server on a separate port localhost:1337. Have turned off my wifi, the chrome…
5
votes
1 answer

Auth basic 401 page does not prompt for credentials due to PWA service worker caching

I'm using basic auth on my dev site (e.g. dev.example.com) and I'm running into an issue where my site is not prompting me for credentials after my initial visit. In other words, if I clear my browser cache the prompt appears and I can log in just…
5
votes
3 answers

Small percentage of users loading days-old HTML?

We have a page with +50.000 active users. Sometimes when we do an update where we change both the backend and frontend, we see JavaScript errors coming in for a small percentage of people that seem to load the old HTML. (It can't find object X…
Dirk Boer
  • 8,522
  • 13
  • 63
  • 111
5
votes
1 answer

Service/extension for getting a cache-busting 'version string'

Background I have an application where 3 views utilize html5 offline app functionality. As such, I have an app manifest generated in a razor view. A cut-down version of this view may look like the following: CACHE…
5
votes
1 answer

Use relay cache data on react-native app while fresh data is being fetched

I have a React Native app integrated with Relay and I want to delivery an offline-first experience for users. So, in the first app launch a placeholder should be shown while data is being loaded. After that, every time the app be launched I want to…
Helielson Santos
  • 231
  • 1
  • 2
  • 10
5
votes
1 answer

HTML5 web app not caching in iOS Safari for offline use

I am developing a HTML5 web app for use offline on an iPad2 using mobile Safari and the "Add to home screen" feature. I am able to achieve offline caching using a cache.manifest file in desktop Chrome but cannot make it work in iOS mobile…
5
votes
1 answer

adding service worker to reactjs app

I'm about the create a small single page reactjs app that fetches data from 3rd API (let's say youtube videos, so those will be displayed). So I don't need any backend at all, but I'd like to make it offline first with service workers, so if there…
Sean Magyar
  • 2,360
  • 1
  • 25
  • 57
5
votes
4 answers

How does facebook or instagram app retain images or data after entering the app with no internet connection?

In Facebook app, for example, I login with my internet connection. Then I close the app, turn off the internet and close all my system tabs. Then even though my internet connection is off, I see the images and data that had been previously loaded…
Shababb Karim
  • 3,614
  • 1
  • 22
  • 35
5
votes
1 answer

Does sw-precache activation of new service worker guarantees cache busting?

I am using sw-precache along with sw-toolbox to allow offline browsing of cached pages of an Angular app. The app is served through a node express server. One problem we ran into is that the index.html sometimes doesn't seem to be updated in the…
mkhatib
  • 5,089
  • 2
  • 26
  • 35
5
votes
1 answer

Best Approach Today for Offline Web Apps

I'm trying to build a web app that needs to work offline at times. The standard approach until now has been to use the browser's Application Cache. However, it appears that Application Cache is deprecated and will be removed from browsers in the…
5
votes
1 answer

how to configure a manifest file

This is my first time in stackoverflow so if i break any rule or something, please tell me and ill try to fix it asap. Im trying to configure a manifest (appcache) file to download 2 files( one html and one JS) and be able to use that HTML in…
5
votes
1 answer

AngularJS/PouchDB app stops syncing to CouchDB when cache.manifest added

I have a single page web app written using AngularJS. It uses PouchDB to replicate to a CouchDB server and works fine. The problem comes when I try to convert the webpage to be available offline by adding cache.manifest. Suddenly ALL the…
Michael Blagg
  • 100
  • 1
  • 6