Skip to content

Commit

Permalink
docs: fixed source links
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Jan 6, 2022
1 parent 25b34e5 commit c5de326
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/pages/per-request-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ determine their TTL value to override this

If activated, when the response is received, the `ttl` property will be inferred from the
requests headers. See the actual implementation of the
[`interpretHeader`](src/header/interpreter.ts) method for more information. You can
[`interpretHeader`](https://github.com/arthurfiorette/axios-cache-interceptor/blob/main/src/header/interpreter.ts) method for more information. You can
override the default behavior by setting the `headerInterpreter` when creating the cached
axios client.

Expand All @@ -52,7 +52,7 @@ Defaults to only `GET` methods.
## `cache.cachePredicate`

An object or function that will be tested against the response to test if it can be
cached. See the [inline documentation](src/util/cache-predicate.ts) for more.
cached. See the [inline documentation](https://github.com/arthurfiorette/axios-cache-interceptor/blob/main/src/util/cache-predicate.ts) for more.

An simple example with all values:

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/request-id.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ axios.get('...', {
});
```

The [default](src/util/key-generator.ts) id generation can clarify this idea.
The [default](https://github.com/arthurfiorette/axios-cache-interceptor/blob/main/src/util/key-generator.ts) id generation can clarify this idea.
4 changes: 2 additions & 2 deletions docs/pages/storages.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
A storage is the main object responsible for saving, retrieving and serializing (if
needed) cache data. There are two simple ones that comes by default:

- [In Memory](src/storage/memory.ts) with `buildMemoryStorage` (Node and Web)
- [Web Storage API](src/storage/web-api.ts) with `buildWebStorage` (Web only)
- [In Memory](https://github.com/arthurfiorette/axios-cache-interceptor/tree/main/src/storage/memory.ts) with `buildMemoryStorage` (Node and Web)
- [Web Storage API](https://github.com/arthurfiorette/axios-cache-interceptor/tree/main/src/storage/web-api.ts) with `buildWebStorage` (Web only)

Both of them are included in all bundles.

Expand Down

0 comments on commit c5de326

Please sign in to comment.