Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/conradlz/ember-service-worker-cache-rendered
Ember service worker plugin for storing rendered html in cache, really useful for fastboot
https://github.com/conradlz/ember-service-worker-cache-rendered
Last synced: 2 months ago
JSON representation
Ember service worker plugin for storing rendered html in cache, really useful for fastboot
- Host: GitHub
- URL: https://github.com/conradlz/ember-service-worker-cache-rendered
- Owner: conradlz
- License: mit
- Created: 2017-04-19T05:01:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-01T04:06:50.000Z (over 7 years ago)
- Last Synced: 2024-05-19T05:38:20.792Z (8 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-ember - ember-service-worker-cache-rendered - Ember.js service worker plugin for storing rendered html in cache, really useful for fastboot. (Packages / Service Workers)
README
# Ember Service Worker Cache Rendered
_An Ember Service Worker plugin that caches rendered html from an ember app's server, probably fastboot._This plugin works by performing a fetch for the current request to the ember server and caches the response, if it wasn't already cached. It should work for any path, which is nice if you want to cache server rendered contents with the service worker.
## F#$& my assets aren't updating in development mode
Turn on the "Update on reload" setting in the `Application > Service Workers`
menu in the Chrome devtools.## Installation
```
ember install ember-service-worker-cache-rendered
```## Configuration
The configuration is done in the `ember-cli-build.js` file:
```js
var EmberApp = require('ember-cli/lib/broccoli/ember-app');module.exports = function(defaults) {
var app = new EmberApp(defaults, {
'esw-cache-rendered': {
// changing this version number will bust the cache
version: '1'
}
});return app.toTree();
};
```## Legal
[Licensed under the MIT license](http://www.opensource.org/licenses/mit-license.php)