Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle Cache #42

Closed
felipenmoura opened this issue Nov 15, 2016 · 1 comment
Closed

Bundle Cache #42

felipenmoura opened this issue Nov 15, 2016 · 1 comment

Comments

@felipenmoura
Copy link
Member

Feature Request

There should be a way for developers to specify a bundle.
When fetching one url, it could then download and store in cache the "most likely to be used" files in future.

Use case:

When the user fetches the kart page, it could pre-load and cache the scripts, html and styles for the purchase screens as they are probably intending on finish the purchase.

"rules": {
  "purchaseIntension": {
    "match": "/my-kart.html",
    "apply": {
      "bundle": {
        "files": [
          "purchase.js",
          "purchase.css",
          "some-image.png",
          "purchase.html"
        ],
        "expires": "30m"
      }
    }
  }
}
felipenmoura added a commit that referenced this issue Nov 24, 2016
- Added timings in traced steps
- fix redirected requests trace data
- Added support for bundles, as for the issue #42
- Unregister method, now also drops all indexedDB databases
- Add two different events for when it has setup, or is simply ready
- Adding support for unit tests..finally!
- 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
- Add extra events to the API
- 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.
- Added a video with an example for the `dsw init` command
felipenmoura added a commit that referenced this issue Nov 24, 2016
## Updates:

- Fixed problem in init program
- Added timings in traced steps
- fix redirected requests trace data
- Added support for bundles, as for the issue #42
- Unregister method, now also drops all indexedDB databases
- Add two different events for when it has setup, or is simply ready
- Adding support for unit tests..finally!
- 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
- Add extra events to the API
- 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.
- Added a video with an example for the `dsw init` command

## Learning

- [How to install](https://github.com/NascHQ/dsw#installing-it)
- [How to use it](https://github.com/NascHQ/dsw#using-it)
- [Push Notification support](https://github.com/NascHQ/dsw#push-notifications)
 - [Matching requests](https://github.com/NascHQ/dsw#matching)
 - [Request Strategies](https://github.com/NascHQ/dsw#strategy)
 - [Possible actions for each request](https://github.com/NascHQ/dsw#applying)
    - [Caching requests](https://github.com/NascHQ/dsw#cache)
    - [Storing in IndexedDB](https://github.com/NascHQ/dsw#indexeddb)
    - [Tracing and debugging requests](https://github.com/NascHQ/dsw#tracing-and-debugging)
    - [Preloading bundles](https://github.com/NascHQ/dsw#bundle)
- [Drops/examples](https://github.com/NascHQ/dsw#examples)
  - [Treating 404 pages](https://github.com/NascHQ/dsw#treating-not-found-pages-404)
  - [Treating 404 images](https://github.com/NascHQ/dsw#treating-not-found-images-404)
  - [Caching requests](https://github.com/NascHQ/dsw#caching-data)
  - [Uncacheable rules](https://github.com/NascHQ/dsw#dealing-with-cache-exceptionscache-false)
  - [Redirecting requests](https://github.com/NascHQ/dsw#redirecting-an-url)
  - [Using variables in redirects](https://github.com/NascHQ/dsw#using-variables)
  - [Caching everything](https://github.com/NascHQ/dsw#caching-everything)
  - [Caching static files](https://github.com/NascHQ/dsw#caching-your-static-files)
  - [Bypassing requests](https://github.com/NascHQ/dsw#bypassing-requests)
  - [Sending credentials](https://github.com/NascHQ/dsw#sending-credentials)
- [Using it programatically (require('dsw'))](https://github.com/NascHQ/dsw#using-it-programatically)
- [Client API](https://github.com/NascHQ/dsw#using-the-api)
  - [Notifications API](https://github.com/NascHQ/dsw#notifications)
  - [PUSH Notifications API](https://github.com/NascHQ/dsw#push-notifications-api)
  - [Connection Status API](https://github.com/NascHQ/dsw#connection-status)
- [Contributing to the project](https://github.com/NascHQ/dsw#contributing)
@felipenmoura
Copy link
Member Author

The last release added support for bundles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant