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 <njoseph@riseup.net>
[sunil: Drop no-cache and must-revalidate directives as they are redundant]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati 2025-07-02 10:56:57 +05:30 committed by Sunil Mohan Adapa
parent e444b74e93
commit 98d4327c49
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -10,6 +10,11 @@ Alias /tiddlywiki /var/lib/tiddlywiki
<IfModule mod_auth_pubtkt.c>
TKTAuthToken "admin" "wiki"
</IfModule>
# Disable caching
<IfModule mod_headers.c>
Header set Cache-Control "no-store"
</IfModule>
</Location>
<Directory /var/lib/tiddlywiki>