mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
docs: updated download urls
This commit is contained in:
parent
b555f95057
commit
c5629be9e5
@ -41,11 +41,19 @@ const { setupCache } = window.AxiosCacheInterceptor;
|
||||
```
|
||||
|
||||
```html
|
||||
<!-- Production for ES6+ (~12.2KB) -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/axios-cache-interceptor@0.8.2/umd/es6.js" integrity="sha256-knwlPudOCSuVUXzq9OMCFjjP/jg+nYQi5oLpZTFmzAk=" crossorigin="anonymous"></script>
|
||||
<!-- Production for ES6+ (~9.5KB) -->
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/axios-cache-interceptor@0.8.3/umd/es6.js"
|
||||
integrity="sha256-nKoAFeqfjqk/zGKrsCJbFcFAn86H12uVGosvfKzrPQA="
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
|
||||
<!-- Production for ES5+ (~20.5KB) (Needs Promise polyfill) -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/axios-cache-interceptor@0.8.2/umd/es5.js" integrity="sha256-CKHNTt/NYMXYFQlGdJM2Uc0IWSCQBBhdIPVuFGfEBJ8=" crossorigin="anonymous"></script>
|
||||
<!-- Production for ES5+ (~12.8KB) (Needs Promise polyfill) -->
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/axios-cache-interceptor@0.8.3/umd/es5.js"
|
||||
integrity="sha256-K4+/MYdTXXV7Z9Y2O9CKUNIFOWOo0pjA/22UKUvq1hE="
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
```
|
||||
|
||||
## With URL imports
|
||||
|
||||
@ -43,7 +43,8 @@ Everything that is used to treat two requests as same or not, is done by the `ge
|
||||
property.
|
||||
|
||||
By default, it uses the `method`, `baseURL`, `params`, `data` and `url` properties from
|
||||
the request object into an hash code generated by the [`object-code`](https://www.npmjs.com/package/object-code) library.
|
||||
the request object into an hash code generated by the
|
||||
[`object-code`](https://www.npmjs.com/package/object-code) library.
|
||||
|
||||
If you need to change or share the cache for two requests based on other properties, like
|
||||
headers and etc, you can create your own Key Generator:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user