Socket
Socket
Sign inDemoInstall

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


Version published
Weekly downloads
1
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc