Service Worker Cache Settings

This project is not covered by Drupal’s security advisory policy.

Synopsis

Service Worker Cache is a simple, PHP-based drupal module that provides an automated configurable scripting methodology that your browser runs in the background, separate from a web page, opening the door to features that don't need a web page or user interaction.


It allows you to support Off-line experiences with an advanced caching mechanism from the Browser end through an extensive use of Javascript-Promises and serve website pages in off-line mode on its own without the need to pull from a central database.

  • This module provides an admin configuration section, where the user can select different kind of SW caching mechanism based on their requirement.
  • The module then adds the required Javascript Promises and registers the service worker for the desired caching behavior.
  • The registered Service worker then is terminated when not in use, and restarted when it's next needed.
  • Service workers are currently supported by Chrome, Firefox and Opera. Microsoft Edge is now showing public support.
    You may visit https://jakearchibald.github.io/isserviceworkerready to follow the progress of all the supported browsers at Jake Archibald's is Serviceworker ready site.
  • Service workers are restricted to running across HTTPS for security reasons. You can only register service workers on pages served over HTTPS, so whatever thing browser receives through service worker hasn't been tampered with during its journey through the network

Requirements

This Module works with Drupal 7.x.

*Notes

Currently Device Detector provides desktop browser support for :
- Google Chrome
- Mozilla Firefox
- Microsoft Edge
- Opera Mini

Available community modules :
- Progressive Web App
Note *:This solutions somehow is huge and does not specify any out of the box benefit.
Service Worker Cache provides specific configuration settings for several generic and daily base needs of site performance enhancement through crisp browser caching mechanism based on the requirement without requiring any additional hand-coding.

Dependencies

No such dependencies present. Simply install the module and do your stuffs.

Supporting organizations: 
My Projects team members helped me in finding out all possible issues for the module by repetitive testing by installing it in several projects, and thereby making it more stable after the fixes.

Project information

Releases