From 98d4327c49a937195a182e7e650309037a25f957 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Wed, 2 Jul 2025 10:56:57 +0530 Subject: [PATCH] tiddlywiki: Avoid "412: Precondition failed" error Apache sends an instruction to the browser to not cache the TiddlyWiki file at all. This forces the browser to fetch the new version after each write avoiding the case "file changed on server". Signed-off-by: Joseph Nuthalapati [sunil: Drop no-cache and must-revalidate directives as they are redundant] Signed-off-by: Sunil Mohan Adapa Reviewed-by: Sunil Mohan Adapa --- .../etc/apache2/conf-available/tiddlywiki-freedombox.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plinth/modules/tiddlywiki/data/usr/share/freedombox/etc/apache2/conf-available/tiddlywiki-freedombox.conf b/plinth/modules/tiddlywiki/data/usr/share/freedombox/etc/apache2/conf-available/tiddlywiki-freedombox.conf index f968db2c1..a69f78417 100644 --- a/plinth/modules/tiddlywiki/data/usr/share/freedombox/etc/apache2/conf-available/tiddlywiki-freedombox.conf +++ b/plinth/modules/tiddlywiki/data/usr/share/freedombox/etc/apache2/conf-available/tiddlywiki-freedombox.conf @@ -10,6 +10,11 @@ Alias /tiddlywiki /var/lib/tiddlywiki TKTAuthToken "admin" "wiki" + + # Disable caching + + Header set Cache-Control "no-store" +