Skip to content
/ pwa Public

Progressive Web App implementation

Notifications You must be signed in to change notification settings

ColdTrick/pwa

Repository files navigation

Progressive Web App

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.