kopia lustrzana https://gitlab.com/rysiekpl/libresilient
34b87e5ad2 | ||
---|---|---|
.. | ||
__tests__ | ||
README.md | ||
index.js |
README.md
Plugin: cache
- status: stable
- type: stashing plugin
The cache
plugin uses the Cache API to save content in visitor's browser for later use (when offline or when the website is down for whatever reason, for instance).
As a stashing plugin, it is handled in a special way by LibResilient:
- if any plugin configured before
cache
returns a successful response, thecache
plugin caches it for later use. - if no plugin configured before
cache
succeeds,cache
returns the cached response; afterwards, plugins configured aftercache
are run in the background to try retrieving a fresher response; if any of them succeeds,cache
plugin caches it for later use.
Configuration
The cache
plugin does not have any configuration options.