You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -468,7 +468,7 @@ export default App;
468
468
<br>
469
469
470
470
## Caching
471
-
Any request can be cached by setting the `maxAge` (expressed in milliseconds) parameter as part of the reuqest options as shown below:
471
+
Any request can be cached by setting the `maxAge` (expressed in milliseconds) parameter as part of the request options as shown below:
472
472
473
473
```js
474
474
import { useHttpRequest } from'react-http-fetch';
@@ -501,7 +501,7 @@ function App() {
501
501
exportdefaultApp;
502
502
```
503
503
504
-
By default the http client uses an in-memory cache, so it will be flushed everytime a full app refresh is performed. You can override the default caching strategy by providing your own cache. The example below a http cache based on session storage:
504
+
By default the http client uses an in-memory cache, so it will be flushed everytime a full app refresh is performed. You can override the default caching strategy by providing your own cache. The example below shows a http cache based on session storage:
0 commit comments