Skip to content

Commit 168d9e4

Browse files
committed
Update nginx.conf
1 parent 7825652 commit 168d9e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker/nginx.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ server {
4444

4545
# Cache nhẹ cho ảnh/tệp tĩnh
4646
add_header Cache-Control "public, max-age=31536000, immutable";
47+
48+
# HLS thường benefit từ cache control
49+
location ~ \.m3u8$ { add_header Cache-Control "no-cache"; }
50+
location ~ \.ts$ { add_header Cache-Control "public, max-age=31536000, immutable"; }
4751
}
4852

4953
# ===== WebSocket bridges (nội bộ qua Docker network) =====

0 commit comments

Comments
 (0)