summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2025-01-23 08:59:27 -0500
committerSacha Chua <sacha@sachachua.com>2025-01-23 08:59:27 -0500
commit9602810f7b0ee6139cc13d201e87fb690a46c68e (patch)
tree87e5b8f5d6686dc6f8219fd17eed1a551e3458bf
parent0bb71d8045684627ba523a0312b6dd29c8d327ac (diff)
downloademacsconf-ansible-9602810f7b0ee6139cc13d201e87fb690a46c68e.tar.xz
emacsconf-ansible-9602810f7b0ee6139cc13d201e87fb690a46c68e.zip
reduce caching
-rw-r--r--roles/media/templates/nginx-include19
1 files changed, 17 insertions, 2 deletions
diff --git a/roles/media/templates/nginx-include b/roles/media/templates/nginx-include
index f80ed76..4d1eabe 100644
--- a/roles/media/templates/nginx-include
+++ b/roles/media/templates/nginx-include
@@ -12,15 +12,30 @@ location /{{ emacsconf_year }}/backstage {
expires off;
etag off;
}
+ location ~* \.vtt$ {
+ add_header Cache-Control "no-cache, no-store, must-revalidate";
+ add_header Pragma "no-cache";
+ add_header Expires "0";
+ }
+
location /{{ emacsconf_year }}/{{ emacsconf_id }}.ics {
- auth_basic off;
- }
+ auth_basic off;
+ add_header Cache-Control "no-cache, no-store, must-revalidate";
+ add_header Pragma "no-cache";
+ add_header Expires "0";
+}
location /{{ emacsconf_year }}/schedules/ {
auth_basic off;
+ add_header Cache-Control "no-cache, no-store, must-revalidate";
+ add_header Pragma "no-cache";
+ add_header Expires "0";
}
{% for track in emacsconf_tracks %}
location /{{ emacsconf_year }}/{{ emacsconf_id }}-{{ track.id }}.ics {
auth_basic off;
+ add_header Cache-Control "no-cache, no-store, must-revalidate";
+ add_header Pragma "no-cache";
+ add_header Expires "0";
}
{% endfor %}
{% if media_protect_root %}