Rename entrypoint to main.ts. Tweak text contrast
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user