libresilient/plugins/fetch
Michał 'rysiek' Woźniak b7419d0fe8 tests passing for work done so far for error handling improvements (ref. #36) 2024-03-06 16:33:22 +00:00
..
__tests__ tests passing for work done so far for error handling improvements (ref. #36) 2024-03-06 16:33:22 +00:00
README.md documenting plugins (ref. #51) 2022-05-17 23:36:08 +00:00
index.html a testing index.html for the fetch plugin (ref. %15) 2023-10-07 04:57:06 +00:00
index.js handling 5xx HTTP errors directly in the service worker (ref. #36) 2024-03-01 18:23:42 +00:00

README.md

Plugin: fetch

This transport plugin uses standard fetch() to retrieve remote content from the original domain — which is exactly what would have happened normally if LibResilient was not deployed on a website.

As per LibResilient architecture, this plugin adds X-LibResilient-Method and X-LibResilient-ETag headers to the returned response.

Configuration

The fetch plugin does not have any configuration options.