🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ember-service-worker-smart-jsonapi-caching

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-service-worker-smart-jsonapi-caching

An Ember Service Worker plugin that caches jsonapi requests and makes sure that they are current in the background

0.1.0
latest
Source
npm
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

Ember Service Worker Cache Fallback

An Ember Service Worker plugin that caches jsonapi requests and makes sure that they are current in the background

Installation

ember install ember-service-worker-smart-jsonapi-caching

Configuration

The configuration is done in the ember-cli-build.js file:

var EmberApp = require('ember-cli/lib/broccoli/ember-app');

module.exports = function(defaults) {
  var app = new EmberApp(defaults, {
    'esw-smart-jsonapi-caching': {
      // RegExp patterns specifying which URLs to cache.
      patterns: [
        '/api/v1/(.+)',
      ],

      // changing this version number will bust the cache
      version: '1'
    }
  });

  return app.toTree();
};

Authors

  • Kyle Mellander

Versioning

This library follows Semantic Versioning

Want to help?

Please do! We are always looking to improve this library. Please see our Contribution Guidelines on how to properly submit issues and pull requests.

Keywords

ember-addon

FAQs

Package last updated on 16 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts