Static serving: correct cache headers, no index fallback for assets
ci / docker (push) Successful in 13m11s
ci / docker (push) Successful in 13m11s
- /assets/*: immutable one-year cache on hits, plain 404 on misses (previously a missing asset fell back to index.html served as its content type, breaking CSS/JS after every deploy for cached clients) - index.html and SPA routes: no-cache, so deploys are visible immediately
This commit is contained in:
Generated
+1
@@ -2574,6 +2574,7 @@ dependencies = [
|
||||
"time",
|
||||
"tokio",
|
||||
"tokio-util",
|
||||
"tower",
|
||||
"tower-http",
|
||||
"tracing",
|
||||
"tracing-subscriber",
|
||||
|
||||
Reference in New Issue
Block a user