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

HTML 5 Application Cache catch events in Chrome

I've created a website using HTML 5 offline Application Cache and it works well in most cases, but for some users it fails. In Chrome, when the application is being cached, the progress is displayed for each file and also error messages if something…
SzilardD
  • 1,611
  • 2
  • 22
  • 40
2
votes
2 answers

Lazy loading non-HTML pages in HTML5 offline cache

The HTML5 Offline Web application spec gives an example of how to lazily load HTML pages into the cache: CACHE MANIFEST FALLBACK: / /offline.html NETWORK: * This is explained in Dive Into HTML5 with the example of Wikipedia: You certainly don't…
mgiuca
  • 20,958
  • 7
  • 54
  • 70
2
votes
1 answer

Caching videos Firestore

I display photos & videos inside my Android application. The photos caching is ensured by Glide, but i would like also to cache the videos downloaded from my Firestore database. Everytime i restart the application it takes ages to load all videos…
2
votes
1 answer

Detecting online status when using service worker does not work

I'm using google workbox to make some content offline available with service workers. The offline part works as intended. But I'd like to give the user a message (fe. with a popup or) when the client has network access again. I tried to achieve that…
Overtronje
  • 53
  • 1
  • 5
2
votes
1 answer

Powershell Offline Files Space (Win32_OfflineFilesDiskSpaceLimit)

I'm trying to write a PowerShell script to get some basic information about offline files on Windows 10 computers, including the cache size limit and amount of space in use. It appears that both of these values are stored properties of the WMI class…
Stroniax
  • 718
  • 5
  • 15
2
votes
1 answer

Service Worker: Serve offline.html instead when offline

I am trying to set up my site service worker to display an offline.html file when offline instead of whichever HTML file the user was trying to fetch that was not in the cache. Following the Workbox docs…
Dracorex
  • 360
  • 2
  • 17
2
votes
2 answers

How can I get rid of the HTML5 offline cache?

I have an application which used to use the HTML5 offline cache. Now I've decided to not use it anymore and removed the manifest attribute from the index.html file. However, browsers still regard this site as cached and refuse to update the…
Fabian Jakobs
  • 28,815
  • 8
  • 42
  • 39
2
votes
1 answer

rack-offline in sinatra

I am trying to setup rack-offline in Sinatra, but I am having trouble setting it up. In rails it is prettty easy, but have no found any examples in Sinatra...
2
votes
0 answers

Why does AppCache not work on IE11 mobile?

I have a website which utilises App Cache and IndexedDb in a secure context (ie https://) to enable use offline. This works fine for most of the devices I have tested on. However on a Nokia Lumia 920 using IE11 mobile (which does support app cache),…
2
votes
0 answers

cross origin scripts are not including after implementation of fetch event in service worker

here is my code : var cacheName = 'app-cache-v2'; var filesToCache = [ 'wp-content/themes/ct/bootstrap.css', 'wp-content/themes/ct/bootstrap-1024.css', 'wp-content/themes/ct/bootstrap-1280.css', …
2
votes
1 answer

Firebase data persistence, updating troubles - Swift

In my firebase database I use persistence to cache the data, but this give me a problem, because some of my data needs to be loaded from the database when the app loads and not from tha cached data. I have a tableview where the data from the…
2
votes
1 answer

Firebase offline capabilities causing memory problems

I am developing a chat app that uses firebase database to store data. The usual approach while developing a chat app is to keep the database nodes synced so that you access the messages offline. So the problem rises when I implement the firebase…
2
votes
0 answers

How to merge streaming videos

I've got mp4 videos on server, length of each video is 5 minutes. I need to merge them into 24h video for displaying using MediaPlayer without pausing for buffering the next video. Now i've got 2 ideas about it: Just to stream video until it…
2
votes
1 answer

Bulk Add All (*.js) or (*.css) files to service worker cache on install

If I have a service worker registered with the doc root ( / ) as its scope, And my Document Layout is like so: Doc-Root Includes JS PHP/JS /HTML Files CSS PHP/CSS Files Typography How Do I Add All JS Only/CSS Only files to the service…
Schrodinger's cat
  • 1,074
  • 10
  • 17
2
votes
0 answers

Make AVURLAsset playable offline with AVAssetCache

AVURLAsset has property assetCache of type AVAssetCache, which has property playableOffline, that indicates if AVAsset is available to be played without a network connection. Property playableOffline is readonly, so the question how is it possible…