From 855292f3632bd20a7466fbafe861d66989dae6d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bedn=C3=A1r?= <33372892+jakubednar@users.noreply.github.com> Date: Wed, 15 May 2024 12:51:47 +0200 Subject: [PATCH] docs: add cache option to useFetch params (#27225) --- docs/3.api/2.composables/use-fetch.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/3.api/2.composables/use-fetch.md b/docs/3.api/2.composables/use-fetch.md index 82a55be72a..84a73d0fc9 100644 --- a/docs/3.api/2.composables/use-fetch.md +++ b/docs/3.api/2.composables/use-fetch.md @@ -87,6 +87,8 @@ Watch the video from Alexander Lichter to avoid using `useFetch` the wrong way! - `headers`: Request headers. - `baseURL`: Base URL for the request. - `timeout`: Milliseconds to automatically abort request + - `cache`: Handles cache control according to [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/fetch#cache) + - You can pass boolean to disable the cache or you can pass one of the following values: `default`, `no-store`, `reload`, `no-cache`, `force-cache`, and `only-if-cached`. ::note All fetch options can be given a `computed` or `ref` value. These will be watched and new requests made automatically with any new values if they are updated.