From 0fae9a6346652edb3345c4188052dafea1a7b3b7 Mon Sep 17 00:00:00 2001 From: Valentin Maerten Date: Mon, 28 Apr 2025 14:23:25 +0200 Subject: [PATCH] add docs --- website/docs/experiments/remote_taskfiles.mdx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/website/docs/experiments/remote_taskfiles.mdx b/website/docs/experiments/remote_taskfiles.mdx index b9c2d1f2..ef9c9b82 100644 --- a/website/docs/experiments/remote_taskfiles.mdx +++ b/website/docs/experiments/remote_taskfiles.mdx @@ -224,8 +224,18 @@ internet and cached locally. This cached file will be used for all future invocations of the Taskfile until the cache expires. Once it expires, Task will download the latest copy of the file and update the cache. By default, the cache is set to expire immediately. This means that Task will always fetch the latest -version. However, the cache expiry duration can be modified by setting the -`--expiry` flag. +version. However, the cache expiry duration can be modified by: +- Setting the `--expiry` flag +- Configuring it in your taskrc file: +```yaml +remote: + cache-expiry: 24h +``` + +The expiry duration should be specified in a format like "24h", "30m", "1h30m", etc. + + + If for any reason you lose access to the internet or you are running Task in offline mode (via the `--offline` flag or `TASK_OFFLINE` environment variable),