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

Chrome Application Cache deleted when going Offline

I intend using a Service Worker to make a Web App available offline. The cache Storage shows the files when I have Internet Connection. However if I go Offline the cache seems to disappear. I do not have enabled the checkbox of Update on Reload in…
4
votes
1 answer

Sharing fetch handler logic defined across multiple service workers

Following This Discussion, Where there is a comment that speaks of patching a Fetch by overriding self.fetch, self.XMLHttpRequest, and self.caches (for cache.add/addAll)? It would seem these would let you intercept network requests and…
Schrodinger's cat
  • 1,074
  • 10
  • 17
4
votes
2 answers

Xamarin - Metadata file .../AWSSDK.SecurityToken.CodeAnalysis.dll could not be found

I am trying to implement offline sync functionality in my Xamarin App. I have installed the Nuget packages: AWSSDK.SecurityToken AWSSDK.SimpleDB AWSSDK.CognitoSync AWSSDK.CognitoIdentity I am receiving this error when I try to rebuild my…
Barney Chambers
  • 2,720
  • 6
  • 42
  • 78
4
votes
1 answer

If (Internet == unavailable) in HTML5 app manifest offiline app

I want to put condition for login page that if an internet connection is available, then check the server database, otherwise check the localstorage. I have tried to check this via an AJAX call, but when the page is loaded from the appcache, it…
Bharat
  • 93
  • 11
4
votes
1 answer

Firebase for Unity – Offline Persistence

I'm using the brand new Firebase SDK for Unity for an Augmented Reality application that I'd like to function offline. I've used the following statement for offline persistence on iOS before but don't see anything in the docs for…
4
votes
1 answer

Serverside rendering and offline first with an application shell architecture

How could one utilise both SSR and offline first capabilities and merge the two technologies together? SSR is capable of rendering my javascript templates for faster, flickerless loading of an application and most importantly would enable any page…
Jammer
  • 1,548
  • 20
  • 37
4
votes
0 answers

is there a way to cache youtube videos based on url?

I am curious to know about youtube video caching. After through study of URLs which are actually responsible for video content, I observed that they are too dynamic in nature and it is close to impossible to cache them based on URL. ex url -…
4
votes
1 answer

Using service worker to catch network error

I have a service worker for my site, but I'm not sure how to get it to handle when there is a network error, I've looked through Mozilla's guides but when I run the worker offline it says that a network error was passed to the respondWith function,…
rcjsdev
  • 813
  • 2
  • 9
  • 20
4
votes
2 answers

Database-driven web app: How to handle offline use

I'm developing a web app using Laravel (a PHP framework). The app is going to be used by about 30 of my co-workers on their Windows laptops. My co-workers interview people on a regular basis. They will use the web app to add a new profile to a…
Pida
  • 928
  • 9
  • 32
4
votes
2 answers

HTML5 Load page from offline cache only when not online

I am attempting to make a webpage available offline. I have added to my page. I have created cache.manifest with the following content: CACHE…
Wesley Smith
  • 19,401
  • 22
  • 85
  • 133
4
votes
0 answers

Is it possible to inject a ServiceWorker into a Chrome app page?

I'd like to use ServiceWorkers to automatically add offline-caching to a page loaded into a webview tag in a Chrome app. According to this answer, and the specs I've read it's not possible to inline a ServiceWorker. Is there any way to inject a…
4
votes
1 answer

Xamarin.Forms caching images

I am using Xamarin.forms to build an application which runs on IOS, Windows Phone and Android. I need to be able cache images on the device when there is no network available. The basics: I'm using an MVVM approach and have a MenuViewModel with a…
TResponse
  • 3,940
  • 7
  • 43
  • 63
4
votes
0 answers

Cache manifest is not working in MVC4 application

Here is my CacheManifestHandler. Manifest file generated doesn't cache any thing that is specified in virtual path. Kindly review the code. Manifest file generated by the below code does not contain the items in cache file. public class…
4
votes
0 answers

Requests from the HTML5 AppCache have no referer header set

I'm having trouble with the HTML5 AppCache and the requests that it sends, so I wrote a small demonstration of the problem. First, there are two HTML files. One is called withmanifest.html, and looks like this:
4
votes
1 answer

iOS Clears HTML5 Offline Cached Data

We developed an offline HTML5 web-app using the .manifest caching mechanism. Everything works as expectet. Now some of our customers complain that after a long period of offline usage the cached data suddenly disappeared. It turns out - this is my…
pawi
  • 183
  • 1
  • 12