From 0bb71d8045684627ba523a0312b6dd29c8d327ac Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Thu, 23 Jan 2025 08:59:18 -0500 Subject: don't cache vtts --- roles/media/templates/nginx-site-config | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'roles') diff --git a/roles/media/templates/nginx-site-config b/roles/media/templates/nginx-site-config index 4dbdaaa..ba25cba 100644 --- a/roles/media/templates/nginx-site-config +++ b/roles/media/templates/nginx-site-config @@ -2,4 +2,9 @@ server { listen 80; server_name {{ media_server_name }}; root /var/www/{{ media_server_name }}; -} \ No newline at end of file + location ~* \.vtt$ { + add_header Cache-Control "no-cache, no-store, must-revalidate"; + add_header Pragma "no-cache"; + add_header Expires "0"; + } +} -- cgit v1.2.3