mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
44 lines
921 B
Markdown
44 lines
921 B
Markdown
<style>
|
|
#main.markdown-section {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 20px;
|
|
}
|
|
rk-embed {
|
|
width: 100%;
|
|
}
|
|
h1.not-found {
|
|
display: inline-block;
|
|
border-right: 1px solid rgba(0, 0, 0, 0.3);
|
|
padding-right: 1rem;
|
|
margin-right: 1rem;
|
|
margin-bottom: 6rem;
|
|
vertical-align: top;
|
|
}
|
|
h1.not-found__text {
|
|
display: inline-block;
|
|
padding-right: 1rem;
|
|
vertical-align: top;
|
|
}
|
|
</style>
|
|
|
|
<div>
|
|
<h1 class="not-found">404</h1>
|
|
<h1 class="not-found__text">This page could not be found.</h1>
|
|
</div>
|
|
|
|
```js #runkit
|
|
// Write some code in the meantime :)
|
|
|
|
const Axios = require('axios');
|
|
const { setupCache, buildWebStorage } = require('axios-cache-interceptor');
|
|
|
|
const axios = Axios.create({});
|
|
setupCache(axios, {});
|
|
|
|
await axios.get('https://jsonplaceholder.typicode.com/posts/1');
|
|
```
|