Dsw Versions Save

Dynamic Service Worker - making your offline Progressive Web Apps way easier

v1.11.0

7 years ago

Added

  • Added support for bundles, as for the issue #42
  • Added timings in traced steps
  • Add two different events for when it has setup, or is simply ready
  • Adding support for unit tests..finally!
  • Add extra events to the API
  • Added a video with an example for the dsw init command

Updates

  • Fixed problem in init program
  • Fix redirected requests trace data
  • Unregister method, now also drops all indexedDB databases
  • Add support to test steps that should follow an order
  • Fix problem for a specific situation: When the request was redirected, using variables, to a not-cached source, on an offline browser, it was failing. Also increased the quality of the trace messages.
  • Fixed problem with redirects in tracesteps
  • Fixed problem for "navigate" mode in requests
  • Fixed a few bugs related to the behavior of some specific requests and redirects.
  • Fixed problems for requests in offline mode.
  • Fixed problem with variables in failing requests.

##Learning

v1.10.1

7 years ago

NEW

  • Push Notifiction: Now you can configure and use GCM Push Notifications Service.
  • Push Notifiction API: You can use the API to listen for the Notification events, including the notification click.
  • Few bugs fixed: We cleaned up the source code a little bit and fixed some bugs.
  • Client API: Extra API methods.
  • Fixed Method bug: Fixed problem for some rules, in requests that used the method POST.

Advantages

  • Use of variables to build URLs and redirects
  • Different strategies (offline-first, online-first or fastest)
  • Easy-to-set rules for 404 pages, redirects, cache or use indexedDB, or outpus
  • Trace requests to debug your configuration, rules and filters
  • Decision over cache naming and versioning for each matching request
  • Many named rules (for future debugging tooling...I imagine we can have a lighthouse-like page for debugging your service workers and your rules)
  • Support for indexedDB
  • Support for messaging and syncing events (under development)
  • Quite simple JSON configuration and easy to start with the basic, or go further for more complex cases
  • Client API with many possibilities
  • API for Web Notifications
  • Support (and API) for Push Notifications
  • Support for opaque requests

Learning

Read the commented json configuration file: https://naschq.github.io/dsw/config-example.html

v1.9.2

7 years ago

NEW

  • Debugg and Trace: Now you can trace and debug your requests and configuration from dswfile.js.
  • AND and OR: You can now match requests with AND and OR statements.
  • Few bugs fixed: We cleaned up the source code a little bit and fixed some bugs.
  • Client API: You can now use the client API to have access to some normalised aliases and shortcuts for some features.
  • Different Origin treatment: Requests for different Origins (CORS) now works better even for embeded contents.

Learning

Read the full documentation: https://github.com/NascHQ/dsw Read the commented json configuration file: https://naschq.github.io/dsw/config-example.html

V1.4.0

7 years ago

The source code has been reorganised.

Besides that, some cool new features have been added, such as:

  • multiple matching properties
  • support for offline-first strategy
  • support for online-first strategy
  • support for fastest strategy
  • support for programatic interaction (using require)