A universal service worker for Meteor apps that caches assets and provides offline functionality.
Meteor Service Worker is a universal service worker implementation for Meteor applications. It caches assets like JavaScript, CSS, and images using hash-based versioning, enabling offline functionality and faster load times by serving cached content when network requests fail.
Meteor developers looking to add offline support and improve performance through asset caching in their web applications.
It provides a simple, ready-to-use service worker that integrates easily with Meteor apps, requiring minimal setup while ensuring compatibility with modern browsers and secure origins.
An universal service worker for meteor apps
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Just place sw.js in the public folder and register it in client code, as shown in the README, requiring minimal setup.
Uses hash versioning (e.g., file.js?hash=XXX) to detect updates and fetch latest assets, ensuring cache reliability.
Serves cached HTML when network requests fail, enabling core app functionality offline, as described in the README.
Allows caching third-party resources with proper headers, mentioned for external URLs in the README.
The README states the creator no longer uses Meteor and is seeking maintainers, risking future bugs and compatibility issues.
Designed exclusively for Meteor apps, making it unsuitable for other frameworks or vanilla JavaScript projects.
Only caches static assets like JS and CSS, with the README explicitly noting it cannot cache databases or dynamic data.
Requires secure origins (HTTPS) to function, which can complicate local development or deployments without SSL certificates.