From a862e849e7d70688cc7ee88d5a7c346aec8e1f53 Mon Sep 17 00:00:00 2001 From: wfleischer <70745309+wfleischer@users.noreply.github.com> Date: Wed, 19 Jan 2022 11:26:05 +0100 Subject: [PATCH] web: cache versioned static files Co-authored-by: Werner Fleischer <70745309+wernf@users.noreply.github.com> --- web/rootfs/defaults/meet.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/rootfs/defaults/meet.conf b/web/rootfs/defaults/meet.conf index 2ce6b0f..cd78631 100644 --- a/web/rootfs/defaults/meet.conf +++ b/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 }}