Download Latest Version Added support for custom scopes (fully backwards compatible).zip (14.0 MB)
Email in envelope

Get an email when there's a new version of UpUp

Home / v1.1.0
Name Modified Size InfoDownloads / Week
Parent folder
Added support for custom scopes (fully backwards compatible).tar.gz 2018-12-21 14.0 MB
Added support for custom scopes (fully backwards compatible).zip 2018-12-21 14.0 MB
README.md 2018-12-21 831 Bytes
Totals: 3 Items   28.1 MB 0

👍 This release is 100% backwards compatible

[Added] Allow defining a custom scope for UpUp

By passing a scope setting to either the addSettings() or start() functions, you can limit the scope for which UpUp will serve offline content.

For example the following code will only serve offline.html in response to requests within the blog subdirectory, even if the code is placed in the root directory.

:::javascript
UpUp.start({
  'content-url': '/blog/offline.html',
  'assets': ['/blog/img/logo.png', '/blog/css/style.css'],
  'scope': '/blog/'
});

❤️ Credits goes to @cspiker for developing, testing, and pull requesting this feature.

Minor changes:

For a full list of changes in this version see https://github.com/TalAter/UpUp/compare/v1.0.0...v1.1.0

Source: README.md, updated 2018-12-21