From ee75fbe8bc51161fcd670443770bfb172fd26a97 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 19 Nov 2018 09:34:41 +0100 Subject: [PATCH] Update nginx regex to also server woff2 Signed-off-by: Morris Jobke --- admin_manual/installation/nginx.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin_manual/installation/nginx.rst b/admin_manual/installation/nginx.rst index c332a336c..643aeee68 100644 --- a/admin_manual/installation/nginx.rst +++ b/admin_manual/installation/nginx.rst @@ -149,7 +149,7 @@ webroot of your nginx installation. In this example it is # Adding the cache control header for js and css files # Make sure it is BELOW the PHP block - location ~ \.(?:css|js|woff|svg|gif)$ { + location ~ \.(?:css|js|woff2?|svg|gif)$ { try_files $uri /index.php$request_uri; add_header Cache-Control "public, max-age=15778463"; # Add headers to serve security related headers (It is intended to @@ -302,7 +302,7 @@ your nginx installation. # Adding the cache control header for js and css files # Make sure it is BELOW the PHP block - location ~ \.(?:css|js|woff|svg|gif)$ { + location ~ \.(?:css|js|woff2?|svg|gif)$ { try_files $uri /nextcloud/index.php$request_uri; add_header Cache-Control "public, max-age=15778463"; # Add headers to serve security related headers (It is intended