Class: OfflineHandler

OfflineHandler(ressourceList, serviceWorkerPathopt, versionParameteropt, clearOldCacheopt, cacheExternalRequestsopt)

Class used to setup the offline access

Constructor

new OfflineHandler(ressourceList, serviceWorkerPathopt, versionParameteropt, clearOldCacheopt, cacheExternalRequestsopt)

Creates an OfflineHandler instance
Parameters:
Name Type Attributes Default Description
ressourceList Array.<String> List of request paths to cache
serviceWorkerPath String <optional>
OfflineHandler-sw.min.js Path to the OfflineHandler-sw.min.js file
versionParameter String <optional>
v Cache version URL parameter
clearOldCache Boolean <optional>
false Clear the old versions of the files once a new one is registered ?
cacheExternalRequests Boolean <optional>
false Cache requests external to the current domain ?
Source:

Members

version :String

Files current version
Type:
  • String
Source: