Kaynağa Gözat

web: cache versioned static files

Co-authored-by: Werner Fleischer <70745309+wernf@users.noreply.github.com>
wfleischer 3 yıl önce
ebeveyn
işleme
a862e84
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      web/rootfs/defaults/meet.conf

+ 5 - 0
web/rootfs/defaults/meet.conf

@@ -43,6 +43,11 @@ location ~ ^/(libs|css|static|images|fonts|lang|sounds|connection_optimization|.
 {
     add_header 'Access-Control-Allow-Origin' '*';
     alias /usr/share/jitsi-meet/$1/$2;
+
+    # cache all versioned files
+    if ($arg_v) {
+        expires 1y;
+    }
 }
 
 {{ if $ENABLE_COLIBRI_WEBSOCKET }}