Skip to content

Commit f526bb3

Browse files
fix: index html cache
1 parent 709fb57 commit f526bb3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- fix/index-html-cache
78
tags:
89
- 'v*'
910

crates/api/src/static_files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub async fn static_handler(req: Request<Body>) -> Response {
4747
.unwrap_or(false);
4848
// Don't cache HTML files to allow for SPA updates
4949
let cache_value = if is_html {
50-
"no-cache"
50+
"no-cache, no-store, must-revalidate"
5151
} else {
5252
"public, max-age=31536000, immutable"
5353
};

0 commit comments

Comments
 (0)