about summary refs log tree commit diff
path: root/bskyweb/cmd
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-05-01 08:59:40 +0100
committerGitHub <noreply@github.com>2024-05-01 08:59:40 +0100
commit81ae7e425dc52846c5d4c282a0422a3875d84e2f (patch)
treefd268c721913a2d6548b299f4e3193bdb5cd5883 /bskyweb/cmd
parent181e61bedb21003921fa21f6e8b86baf918d62bf (diff)
downloadvoidsky-81ae7e425dc52846c5d4c282a0422a3875d84e2f.tar.zst
Add kawaii mode (#3773)
Diffstat (limited to 'bskyweb/cmd')
-rw-r--r--bskyweb/cmd/bskyweb/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bskyweb/cmd/bskyweb/server.go b/bskyweb/cmd/bskyweb/server.go
index 54580d643..e1b009646 100644
--- a/bskyweb/cmd/bskyweb/server.go
+++ b/bskyweb/cmd/bskyweb/server.go
@@ -158,7 +158,7 @@ func serve(cctx *cli.Context) error {
 
 			// Cache javascript and images files for 1 week, which works because
 			// they're always versioned (e.g. /static/js/main.64c14927.js)
-			if strings.HasPrefix(path, "/static/js/") || strings.HasPrefix(path, "/static/images/") {
+			if strings.HasPrefix(path, "/static/js/") || strings.HasPrefix(path, "/static/images/") || strings.HasPrefix(path, "/static/media/") {
 				maxAge = 7 * (60 * 60 * 24) // 1 week
 			}