From 1ab3e6c262d4f86d77f2420b29ed1dc1ff9a7818 Mon Sep 17 00:00:00 2001 From: Manuel Ganter Date: Wed, 3 Dec 2025 10:29:45 +0100 Subject: [PATCH] disable local server cache to prevent likec4 file caching --- Taskfile.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 88c9111..c83f40d 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -43,7 +43,7 @@ tasks: - deps:ensure-npm - build:generate-info cmds: - - "{{.HUGO_CMD}} server" + - "{{.HUGO_CMD}} server --noHTTPCache" clean: desc: Clean build artifacts @@ -113,16 +113,16 @@ tasks: if [ -d "public/docs-old" ]; then mv public/docs-old /tmp/htmltest-backup-$$/; fi if [ -d "public/blog" ]; then mv public/blog /tmp/htmltest-backup-$$/; fi if [ -d "public/_print/docs-old" ]; then mv public/_print/docs-old /tmp/htmltest-backup-$$/docs-old-print; fi - + # Run htmltest htmltest || EXIT_CODE=$? - + # Restore directories if [ -d "/tmp/htmltest-backup-$$/docs-old" ]; then mv /tmp/htmltest-backup-$$/docs-old public/; fi if [ -d "/tmp/htmltest-backup-$$/blog" ]; then mv /tmp/htmltest-backup-$$/blog public/; fi if [ -d "/tmp/htmltest-backup-$$/docs-old-print" ]; then mv /tmp/htmltest-backup-$$/docs-old-print public/_print/docs-old; fi rm -rf /tmp/htmltest-backup-$$ - + # Exit with the original exit code exit ${EXIT_CODE:-0}