mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
docs: download url & CI
This commit is contained in:
parent
b6ce409c25
commit
fdab8463c6
3
.github/workflows/docs.yml
vendored
3
.github/workflows/docs.yml
vendored
@ -7,7 +7,6 @@ on:
|
|||||||
description: 'Publish as version[?]:'
|
description: 'Publish as version[?]:'
|
||||||
default: 'latest'
|
default: 'latest'
|
||||||
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
@ -33,6 +32,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build for ${{ github.event.inputs.version }}
|
- name: Build for ${{ github.event.inputs.version }}
|
||||||
run: yarn docs:build --base /${{ github.event.inputs.version }}/
|
run: yarn docs:build --base /${{ github.event.inputs.version }}/
|
||||||
|
if: ${{ github.event.inputs.version != 'latest' }}
|
||||||
|
|
||||||
- name: Deploy to ${{ github.event.inputs.version }}
|
- name: Deploy to ${{ github.event.inputs.version }}
|
||||||
uses: JamesIves/github-pages-deploy-action@v4
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
@ -48,6 +48,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build for main
|
- name: Build for main
|
||||||
run: yarn docs:build
|
run: yarn docs:build
|
||||||
|
if: ${{ github.event.inputs.version == 'latest' }}
|
||||||
|
|
||||||
- name: Deploy to latest
|
- name: Deploy to latest
|
||||||
if: ${{ github.event.inputs.version == 'latest' }}
|
if: ${{ github.event.inputs.version == 'latest' }}
|
||||||
|
|||||||
@ -288,7 +288,7 @@ export default defineConfig({
|
|||||||
text: 'Others',
|
text: 'Others',
|
||||||
items: [
|
items: [
|
||||||
{ text: 'MIT License', link: '/others/license' },
|
{ text: 'MIT License', link: '/others/license' },
|
||||||
{ text: 'Changelog', link: '/others/changelog' },
|
{ text: 'Changelog', link: '/others/changelog' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -4,18 +4,20 @@ Run at Sun, 29 Jan 2023 01:24:01 GMT
|
|||||||
|
|
||||||
Commit: 3db90e8c262c48d011fdd53bcda105512434e56e
|
Commit: 3db90e8c262c48d011fdd53bcda105512434e56e
|
||||||
|
|
||||||
|
|
||||||
## CACHE INTERCEPTOR
|
## CACHE INTERCEPTOR
|
||||||
- Operations: 41275/s
|
|
||||||
- Network requests: 1 of 205788
|
- Operations: 41275/s
|
||||||
- Performance: 100.00%
|
- Network requests: 1 of 205788
|
||||||
|
- Performance: 100.00%
|
||||||
|
|
||||||
## CACHE ADAPTER
|
## CACHE ADAPTER
|
||||||
- Operations: 37683/s
|
|
||||||
- Network requests: 2 of 185780
|
- Operations: 37683/s
|
||||||
- Performance: 91.30%
|
- Network requests: 2 of 185780
|
||||||
|
- Performance: 91.30%
|
||||||
|
|
||||||
## AXIOS
|
## AXIOS
|
||||||
- Operations: 1970/s
|
|
||||||
- Network requests: 9773 of 9773
|
- Operations: 1970/s
|
||||||
- Performance: 4.77%
|
- Network requests: 9773 of 9773
|
||||||
|
- Performance: 4.77%
|
||||||
|
|||||||
@ -17,17 +17,17 @@ npm install axios@1 axios-cache-interceptor@1
|
|||||||
```
|
```
|
||||||
|
|
||||||
```html [Browser]
|
```html [Browser]
|
||||||
<!-- Development UMD build for ES2017+ (~13 KiB) -->
|
<!-- Development UMD build for ES2017+ (~13.3 KiB) -->
|
||||||
<script
|
<script
|
||||||
src="https://cdn.jsdelivr.net/npm/axios-cache-interceptor@1.0.0/dev/index.bundle.js"
|
src="https://cdn.jsdelivr.net/npm/axios-cache-interceptor@1.0.1/dev/index.bundle.js"
|
||||||
integrity="sha256-IQeFXs7Q4XpPQAqvXrq5dSFOespi25XswgB9lTP3lbI="
|
integrity="sha256-+VuTj9uoKtkaK4W5NhpOzIa5i2c1c8U4KtGeKT05Xng="
|
||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
></script>
|
></script>
|
||||||
|
|
||||||
<!-- Production UMD build for ES5+ (~14.6 KiB) -->
|
<!-- Production UMD build for ES5+ (~14.6 KiB) -->
|
||||||
<script
|
<script
|
||||||
src="https://cdn.jsdelivr.net/npm/axios-cache-interceptor@1.0.0/dist/index.bundle.js"
|
src="https://cdn.jsdelivr.net/npm/axios-cache-interceptor@1.0.1/dist/index.bundle.js"
|
||||||
integrity="sha256-4N58khN2nV+P1NTUwRznqALDjhfl6ERO99Cltk3AN4Y="
|
integrity="sha256-oMsCHuvRgFCk0HWYVIYEB/M1XjRAglYjU+lMQEi3zjY="
|
||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
></script>
|
></script>
|
||||||
```
|
```
|
||||||
|
|||||||
@ -61,9 +61,8 @@ properties:
|
|||||||
import Axios from 'axios';
|
import Axios from 'axios';
|
||||||
import { setupCache, buildKeyGenerator } from 'axios-cache-interceptor';
|
import { setupCache, buildKeyGenerator } from 'axios-cache-interceptor';
|
||||||
|
|
||||||
|
|
||||||
const axios = setupCache(Axios, {
|
const axios = setupCache(Axios, {
|
||||||
keyGenerator: buildKeyGenerator((request/* [!code focus:5] */) => ({
|
keyGenerator: buildKeyGenerator((request /* [!code focus:5] */) => ({
|
||||||
method: request.method,
|
method: request.method,
|
||||||
url: request.url,
|
url: request.url,
|
||||||
custom: logicWith(request.method, request.url)
|
custom: logicWith(request.method, request.url)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user