Rename entrypoint to main.ts. Tweak text contrast

This commit is contained in:
2026-10-02 13:53:53 +02:00
parent 41c0481380
commit 9a7ed0a347
13 changed files with 19 additions and 27 deletions

View File

@@ -62,7 +62,7 @@ func New(r *httprouter.Router, conf Config) (wc *WebController) {
var resourceHandler = func(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
// Cache resources for a year. Except the Svelte entrypoint, it keeps its
// name when it changes. The chunks it imports have a hash in their name
if p.ByName("filepath") == "/svelte/wrap.js" {
if p.ByName("filepath") == "/svelte/main.js" {
w.Header().Set("Cache-Control", "no-cache")
} else {
w.Header().Set("Cache-Control", "public, max-age=31536000")