Giter Site home page Giter Site logo

ember-service-worker-race's People

Contributors

ember-tomster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ember-service-worker-race's Issues

Ignore XHR requests

The current implementation caches every GET request made, even the ones done by the app to load data (XHR requests).

May be an option could be added to ignore the requests made to certain URLs, but it would much better that the service worker could identify those requests automatically and don't cache them.

I came to this http://stackoverflow.com/questions/40583334/how-to-detect-whether-url-request-is-ajax-in-service-worker-fetch-api but I am not sure it would work ๐Ÿค”

Synchronized assets

In some projects assets/dependencies might need to be synchronized, that meaning that the version of them must be the same.

For example, if you have a new feature that updates file a.js and b.js and a.js depends on b.js if the first one is served from the network and the last one is served from the cache, then b.js might not have the new code that a.js needs to work leading to a broken feature/app.

Options

  1. Update README and let users know that the might be cases where the addon breaks the app
  2. Implement an option where the user can explicitly declare dependencies, then the SW would have to somehow check that when it serves that assets they are served all in the same version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.