From 1e3c4ff015e05e0bff0fd55e49245cb6271ed003 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 9 Aug 2016 10:28:20 +0200 Subject: [PATCH] Update nginx_nextcloud_9x.rst See nextcloud/server#769 for the corresponding Apache adjustment --- admin_manual/installation/nginx_nextcloud_9x.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin_manual/installation/nginx_nextcloud_9x.rst b/admin_manual/installation/nginx_nextcloud_9x.rst index 73c7af3892c..631a04779a9 100644 --- a/admin_manual/installation/nginx_nextcloud_9x.rst +++ b/admin_manual/installation/nginx_nextcloud_9x.rst @@ -119,7 +119,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)$ { + location ~* \.(?:css|js|woff|svg|gif)$ { try_files $uri /index.php$uri$is_args$args; add_header Cache-Control "public, max-age=7200"; # Add headers to serve security related headers (It is intended to @@ -138,7 +138,7 @@ your nginx installation. access_log off; } - location ~* \.(?:svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$ { + location ~* \.(?:png|html|ttf|ico|jpg|jpeg)$ { try_files $uri /index.php$uri$is_args$args; # Optional: Don't log access to other assets access_log off; @@ -257,7 +257,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)$ { + location ~* \.(?:css|js|woff|svg|gif)$ { try_files $uri /nextcloud/index.php$uri$is_args$args; add_header Cache-Control "public, max-age=7200"; # Add headers to serve security related headers (It is intended @@ -276,7 +276,7 @@ your nginx installation. access_log off; } - location ~* \.(?:svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$ { + location ~* \.(?:png|html|ttf|ico|jpg|jpeg)$ { try_files $uri /nextcloud/index.php$uri$is_args$args; # Optional: Don't log access to other assets access_log off;