1.1.0 • Published 1 year ago

sf-fetch v1.1.0

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

sf-fetch

This is a simple library to implement cache on fetch using the cache api from browser.

Install

npm

npm i sf-fetch

yarn

yarn add sf-fetch

Usage

It exposes 5 functions:

fetchWithCache

Executes a fetch caching the response for a specific amount of time

clearCache

Clear cache url

clearAllCache

Clear all cache

clearCacheKeysThatIncludes

Clear all cache keys that includes the value passed as parameter

getResponseDate

Get the date that the response was executed by the header 'date'

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago