Open source video conferencing app powered by LiveKit. Built with Django and React.
⚡️(frontend) add caching headers for static assets in Nginx config
antoine lebaud0a9e077f042d
diff --git a/src/frontend/default.conf b/src/frontend/default.confindex f503449c..562d0daa 100644--- a/src/frontend/default.conf+++ b/src/frontend/default.conf@@ -4,6 +4,12 @@ server {root /usr/share/nginx/html;+ # Serve static files with caching+ location ~* ^/assets/.*\.(css|js|json|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {+ expires 30d;+ add_header Cache-Control "public, max-age=2592000";+ }+# Serve static fileslocation / {try_files $uri $uri/ /index.html;@@ -15,5 +21,4 @@ server {# Optionally, handle 404 errors by redirecting to index.htmlerror_page 404 =200 /index.html;-}