Progressive Web App implementation

Fund package maintenance!
ColdTrick
www.paypal.me/ColdTrick

Installs: 1 807

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 0

Open Issues: 1

Type:elgg-plugin

v5.0 2024-06-28 07:03 UTC

This package is auto-updated.

Last update: 2024-11-18 11:17:20 UTC


README

Elgg 6.0 Lint Checks Latest Stable Version License

Provides Progressive Web App features

Features

  • Icon upload
  • Background color selection
  • Color scheme selection
  • Browser UI selection

Service Worker Caching

To reduce the requests to your site, you can enable Service Worker caching in the plugin settings. Be aware that if you enable service worker caching, you will need to make the following adjustment in your .htaccess file:

<IfModule mod_headers.c>
	Header set Service-Worker-Allowed "/" "expr=%{THE_REQUEST} =~ m#upup.sw.js#"
</IfModule>

De-installing the plugin

Be aware that when you remove the PWA plugin the service workers that have been installed will not remove themselves. You might need something like https://github.com/NekR/self-destroying-sw.