postMessage()

This function is essentially an alias for navigator.serviceWorker.controller.postMessage(data), but it also checks if Service Worker is supported and if there is currently a controller, so it is safe to use…

workbox()

To install the Nebula Service Worker, find the sw.js file in the Nebula Child resources directory and move it to the root directory. Then, enable Service Worker in Nebula Options….

nebula_sw_message

…you may need to check to make sure you are acting on the correct one. To post a message to the service worker, use navigator.serviceWorker.controller.postMessage(data), or the more convenient Nebula…

sw_location()

The default filename for the Nebula service worker is sw.js and typical Nebula installation instructs for this file to be moved to the root directory. However, all of this can…

update_sw_js()

This function looks for variables set between //BEGIN Automated edits and //END Automated edits in the service worker JavaScript file (default: sw.js)…

styles_http2_server_push_header()

The Service Worker Nebula option must be enabled, and the service worker file must be in the proper location (default: root directory) for this function to send the HTTP2 Server…

scripts_http2_server_push_header()

The Service Worker Nebula option must be enabled, and the service worker file must be in the proper location (default: root directory) for this function to send the HTTP2 Server…

addToCache()

…URLs to prevent them from attempting to be added to the cache. It also manages the cache name automatically to match the Service Worker JavaScript. Deprecated in favor of Workbox….

predictiveCacheListeners()

If a service worker is being used (and Cache API is available), the resource will be fetched and added to the cache. Otherwise, it will attempt to prefetch with a…

Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!