docs: updated download urls

This commit is contained in:
arthurfiorette 2022-01-15 21:32:00 -03:00
parent b555f95057
commit c5629be9e5
No known key found for this signature in database
GPG Key ID: 9D190CD53C53C555
2 changed files with 14 additions and 5 deletions

View File

@ -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

View File

@ -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: