Open source video conferencing app powered by LiveKit. Built with Django and React.
π(frontend) harmonize cache configuration for MediaPipe assets
lebaudantoine61e8b597dc30
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a78ea7ea..f4aafe86 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,6 +11,7 @@ and this project adheres to### Fixed- π(frontend) serve MediaPipe assets under a versioned path+- π(frontend) harmonize cache configuration for MediaPipe assets## [1.25.1] - 2026-08-06diff --git a/docker/dinum-frontend/nginx/default.conf b/docker/dinum-frontend/nginx/default.confindex 173f5b9f..c3d26ec6 100644--- a/docker/dinum-frontend/nginx/default.conf+++ b/docker/dinum-frontend/nginx/default.conf@@ -65,6 +65,11 @@ server {sub_filter_once off;}+ location ^~ /assets/mediapipe/wasm/ {+ expires 30d;+ add_header Cache-Control "public, max-age=2592000";+ }+# Serve static files with cachinglocation ~* ^/assets/.*\.(css|js|json|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {expires 30d;diff --git a/src/frontend/default.conf b/src/frontend/default.confindex c2e7ef7e..cf83d258 100644--- a/src/frontend/default.conf+++ b/src/frontend/default.conf@@ -4,6 +4,11 @@ server {server_tokens off;root /usr/share/nginx/html;++ location ^~ /assets/mediapipe/wasm/ {+ expires 30d;+ add_header Cache-Control "public, max-age=2592000";+ }# Serve static files with cachinglocation ~* ^/assets/.*\.(css|js|json|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {diff --git a/src/helm/extra/templates/frontend_nginx_cm.yaml b/src/helm/extra/templates/frontend_nginx_cm.yamlindex fffddf3b..3c6ef2df 100644--- a/src/helm/extra/templates/frontend_nginx_cm.yaml+++ b/src/helm/extra/templates/frontend_nginx_cm.yaml@@ -73,6 +73,11 @@ data:sub_filter_once off;}+ location ^~ /assets/mediapipe/wasm/ {+ expires 30d;+ add_header Cache-Control "public, max-age=2592000";+ }+# Serve static files with cachinglocation ~* ^/assets/.*\.(css|js|json|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {expires 30d;