ember-cli-holy-cache
v0.0.9
Published
Save all GET requests in browser store while developing to reduce/fasten up API-Requests.
Downloads
4
Readme
ember-cli-holy-cache
Holy-Cache stores all (RESTAdapter-)GET-Requests to Browser Session Storage.
Installation
ember install ember-cli-holy-cache
How To
For managing the cache add holy-cache-dash
component
somewhere in your template.
<!-- application.hbs -->
{{holy-cache-dash}}
Activate/Deactivate
All functionalities (including "Recording") depend on the active
toggle-button in the holy-cache-dash
component.
Recording
To start recording requests click the "Start recording" button. Please make sure you already activated the addon through your dash. When you finished recording you may click "Stop recording" and optionally also manage your recorded requests by clicking "Show manager".
When your done just refresh your tab and watch the result. Have Fun !
Restrictions
- Holy-Cache will only work in development environments
config.environment === 'development'
- Holy-Cache does not save any other METHODS like POST, PUT and OPTION.
- Holy-Cache store is bound to browser tabs. On opening a new browser tab your session will be empty.