This repository was archived by the owner on Nov 7, 2026. It is now read-only.
Repository navigation
Deploy: atomar hochladen und Cache-Regeln, damit nach Updates keine leeren oder alten Seiten bleiben - #141
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XV48YREU9ynsuFLr37cukz
…ge cachen), vorhandene .htaccess bleibt erhalten Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XV48YREU9ynsuFLr37cukz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Holger · project thread
Beim Deploy von 0.3.38 war die Startseite für Holger kurz leer. Danach zeigte Chrome auch nach dem Neuladen nicht die neue Fassung, Brave dagegen schon.
1. Atomar hochladen
set xfer:use-temp-file yeslädt lftp jede Datei zuerst unter einem Hilfsnamen hoch und benennt sie dann um.2. Cache-Regeln über
.htaccessCache-Control: no-cache. Der Browser fragt also immer kurz beim Server nach, ob es eine neue Fassung gibt, und hält kein altesindex.htmlfest.app/assets/haben einen Hash im Namen und bekommen deshalbmax-age=1 Jahr, immutable..htaccessauf dem Server, z. B. mit einer HTTPS-Weiterleitung von All-Inkl, bleibt erhalten. Das Skript lädt sie, ersetzt nur den Block zwischen# BEGIN VisuStruct-Cacheund# END VisuStruct-Cachebzw. hängt ihn an und lädt sie am Ende wieder hoch. Lokal geprüft: Der Merge ist idempotent, und fremde Zeilen bleiben stehen..github/scripts/htaccess-cache.confund nicht inwebsite/, damit er nicht als normale Datei mitgespiegelt wird.Der Trockenlauf dieses PRs zeigt, wie viele Zeilen der vorhandenen
.htaccesserhalten bleiben, und prüft die lftp-Einstellung.🤖 Generated with Claude Code
https://claude.ai/code/session_01XV48YREU9ynsuFLr37cukz