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

How to Overwrite or Update Cache files in Flutter while using Path Provider

Below Code i have created for local caching using path provider String fileName="pathString.json"; var dir=await getTemporaryDirectory(); File file=File(dir.path+"/"+fileName); if(!file.existsSync()) { final http.Response response = await…
3
votes
0 answers

WKWebView - Offline support for external URL's loaded in iframes

Use case We have an app where a website is loaded in a WKWebView instance. Within this website, there is a requirement to load certain external URLs provided by customers in iframes. The challenge we are facing is in setting up offline support for…
Kiran S
  • 31
  • 1
3
votes
1 answer

Making Service Worker always load files from server, unless Offline

As I understand, Service Workers have their own cache. And HTTP traffic has a separate cache. When you are offline, a browser refuses to show you a website from a HTTP cache, but it gladly shows you a website from a Service Worker cache. I update my…
Ivan Kuckir
  • 2,327
  • 3
  • 27
  • 46
3
votes
1 answer

Html5 offline cache form data

Hi I'm designed a web app to be used offline at my company. People will be walking around the warehouse with iPads offline enter some pretty simple form data, usually 15-20 char id codes and quantities associated with them. What is a good way to…
Andrew Samuelsen
  • 5,325
  • 9
  • 47
  • 69
3
votes
2 answers

What is new in HTML 5 "offline web application" which was not already available in the all browsers?

What is new in HTML 5’s “offline web applications” feature which was not already available in all browsers? Offline caching is the job of the browser — how did it become a job of HTML? A web cache is a mechanism for the temporary storage…
Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852
3
votes
1 answer

precaching a generated asset in Service Worker

I have some resources which are getting generated on runtime or on build for example scripts, CSS, etc. The file format is something like this main.min.63716273681.js and similarly for other resources as well. Unfortunately, I cannot use sw-precache…
bhansa
  • 7,282
  • 3
  • 30
  • 55
3
votes
1 answer

Application manifest working on android, iPhone, firefox, opera, but not on iPad

I'm having trouble getting a real simple html5 cache manifest to work on the iPad. It does however work on all other devices and browsers I've tested. Are there any bugs in the iPad safari implementation or other limitations to the iPad or am I…
Minion91
  • 1,911
  • 12
  • 19
3
votes
1 answer

Appsync offline queries not working in android

I am creating the android APP using 'com.amazonaws:aws-android-sdk-appsync:2.10.0' android library. When I am using the 'NETWORK_FIRST' option (when network is on) queries and mutations are working well, but when I am using the same in offline mode…
3
votes
1 answer

React Native Expo Offline App: How to Update Local Database from Remote Server

I am planning to build a new offline-first React Native Expo app where the user mainly will be browsing images and text content. It must be a fully managed Expo app, without ejecting. So Realm DB is not a solution, as it requires ejecting the Expo…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
3
votes
1 answer

Get Widevine License Server key

What to achieve: I need to support offline videos on android device just like Netflix and prohibiting its distribution using DRM support. What I've done till now: I've converted a sample video into m3u8 format using Shaka Packager. Used this link…
Prashast
  • 198
  • 1
  • 2
  • 12
3
votes
1 answer

Fetch event not getting executed in very first time page load in service worker because client not registered

Hi Am facing a wired behavior in service worker. After clearing all the cache load the page service worker loading everything to Cache API. then i went offline and reload the page the page is not getting loaded. I went online and loaded the page…
3
votes
2 answers

Should I include large files in PWA build for offline capability?

I am developing a PWA with Vue 3 CLI that grabs some of it's content from a seperate CMS/API. The application is a touchscreen game and a primary use case is running without an internet connection, although the user environment is controlled and the…
3
votes
0 answers

Retrofit does not cache my response

I have tried through almost every videos, articles and stackoverflow answer but I am not being able to cache the response in Retrofit. I have retrofit setup is like this : private val gson = GsonBuilder() .setLenient() …
erluxman
  • 18,155
  • 20
  • 92
  • 126
3
votes
2 answers

Cache MP3 Audio Files for Offline Access

I have built a Single Page Application in Vue, but now I get a request for an offline version, where you can listen to a mp3 file offline, e.g. in the Plane or in areas with no signal. Is it possible with Vue, a local storage or the service-worker…
Niller2000
  • 51
  • 1
  • 9
3
votes
1 answer

How far does the Offline-first feature of gunJS go ?

I would like to know how the data is persisted(saved) on the device, does it survive a reboot ? or a restart of the browser ?
Xsmael
  • 3,624
  • 7
  • 44
  • 60