Test name | Executions per second |
---|---|
Fetch (default) | 3460.3 Ops/sec |
Fetch (no-store) | 2145.7 Ops/sec |
<div id="test"></div>
fetch('https://jsonplaceholder.typicode.com/todos')
.then((response) => {
return response.json();
})
.then((data) => {
console.log(data);
});
fetch('https://jsonplaceholder.typicode.com/todos', {
cache: 'no-store'
})
.then((response) => {
return response.json();
})
.then((data) => {
console.log(data);
});