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[?]:'
|
||||
default: 'latest'
|
||||
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
@ -33,6 +32,7 @@ jobs:
|
||||
|
||||
- name: Build for ${{ 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 }}
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
@ -48,6 +48,7 @@ jobs:
|
||||
|
||||
- name: Build for main
|
||||
run: yarn docs:build
|
||||
if: ${{ github.event.inputs.version == 'latest' }}
|
||||
|
||||
- name: Deploy to latest
|
||||
if: ${{ github.event.inputs.version == 'latest' }}
|
||||
|
||||
@ -288,7 +288,7 @@ export default defineConfig({
|
||||
text: 'Others',
|
||||
items: [
|
||||
{ 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
|
||||
|
||||
|
||||
## CACHE INTERCEPTOR
|
||||
- Operations: 41275/s
|
||||
- Network requests: 1 of 205788
|
||||
- Performance: 100.00%
|
||||
|
||||
- Operations: 41275/s
|
||||
- Network requests: 1 of 205788
|
||||
- Performance: 100.00%
|
||||
|
||||
## CACHE ADAPTER
|
||||
- Operations: 37683/s
|
||||
- Network requests: 2 of 185780
|
||||
- Performance: 91.30%
|
||||
|
||||
- Operations: 37683/s
|
||||
- Network requests: 2 of 185780
|
||||
- Performance: 91.30%
|
||||
|
||||
## AXIOS
|
||||
- Operations: 1970/s
|
||||
- Network requests: 9773 of 9773
|
||||
- Performance: 4.77%
|
||||
|
||||
- Operations: 1970/s
|
||||
- Network requests: 9773 of 9773
|
||||
- Performance: 4.77%
|
||||
|
||||
@ -17,17 +17,17 @@ npm install axios@1 axios-cache-interceptor@1
|
||||
```
|
||||
|
||||
```html [Browser]
|
||||
<!-- Development UMD build for ES2017+ (~13 KiB) -->
|
||||
<!-- Development UMD build for ES2017+ (~13.3 KiB) -->
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/axios-cache-interceptor@1.0.0/dev/index.bundle.js"
|
||||
integrity="sha256-IQeFXs7Q4XpPQAqvXrq5dSFOespi25XswgB9lTP3lbI="
|
||||
src="https://cdn.jsdelivr.net/npm/axios-cache-interceptor@1.0.1/dev/index.bundle.js"
|
||||
integrity="sha256-+VuTj9uoKtkaK4W5NhpOzIa5i2c1c8U4KtGeKT05Xng="
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
|
||||
<!-- Production UMD build for ES5+ (~14.6 KiB) -->
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/axios-cache-interceptor@1.0.0/dist/index.bundle.js"
|
||||
integrity="sha256-4N58khN2nV+P1NTUwRznqALDjhfl6ERO99Cltk3AN4Y="
|
||||
src="https://cdn.jsdelivr.net/npm/axios-cache-interceptor@1.0.1/dist/index.bundle.js"
|
||||
integrity="sha256-oMsCHuvRgFCk0HWYVIYEB/M1XjRAglYjU+lMQEi3zjY="
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
```
|
||||
|
||||
@ -61,9 +61,8 @@ properties:
|
||||
import Axios from 'axios';
|
||||
import { setupCache, buildKeyGenerator } from 'axios-cache-interceptor';
|
||||
|
||||
|
||||
const axios = setupCache(Axios, {
|
||||
keyGenerator: buildKeyGenerator((request/* [!code focus:5] */) => ({
|
||||
keyGenerator: buildKeyGenerator((request /* [!code focus:5] */) => ({
|
||||
method: request.method,
|
||||
url: request.url,
|
||||
custom: logicWith(request.method, request.url)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user