diff options
author | Sacha Chua <sacha@sachachua.com> | 2025-01-23 08:59:18 -0500 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2025-01-23 08:59:18 -0500 |
commit | 0bb71d8045684627ba523a0312b6dd29c8d327ac (patch) | |
tree | 90c324542e4bd84d2cfebd108ad294a523ac8108 | |
parent | ec805cfab994a4c095a0e44006d35aeec3c841f4 (diff) | |
download | emacsconf-ansible-0bb71d8045684627ba523a0312b6dd29c8d327ac.tar.xz emacsconf-ansible-0bb71d8045684627ba523a0312b6dd29c8d327ac.zip |
don't cache vtts
Diffstat (limited to '')
-rw-r--r-- | roles/media/templates/nginx-site-config | 7 |
1 files changed, 6 insertions, 1 deletions
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"; + } +} |