imageviewer.js will fallback to proxy image when full image fails to load

This commit is contained in:
partisan 2024-12-04 08:49:00 +01:00
parent 8f2c0d45f8
commit 72d76c85ed
2 changed files with 23 additions and 11 deletions

View file

@ -511,5 +511,6 @@ func serveMissingImage(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "no-store, must-revalidate")
w.Header().Set("Pragma", "no-cache")
w.Header().Set("Expires", "0")
w.WriteHeader(http.StatusNotFound)
http.ServeFile(w, r, missingImagePath)
}