feat(deps): update golangci-lint to v2
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 5m5s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 4m53s

This commit was merged in pull request #55.
This commit is contained in:
2025-05-06 17:36:05 +02:00
parent 81380f184e
commit f085ed378e
10 changed files with 36 additions and 28 deletions

View File

@@ -7,14 +7,10 @@ import (
func CacheControl(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
path := r.URL.Path
cached := false
if strings.HasPrefix(path, "/static") {
cached = true
}
shouldCache := strings.HasPrefix(r.URL.Path, "/static")
if !cached {
if !shouldCache {
w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
}