From 51565cb62efc91ec475d8b77a041287b1e477752 Mon Sep 17 00:00:00 2001 From: Joshua Ruehlig Date: Mon, 15 May 2017 10:03:14 -0700 Subject: [PATCH] Update nginx.rst Increase TTL to match .htaccess. Regex do not need to be case insensitive. --- admin_manual/installation/nginx.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/admin_manual/installation/nginx.rst b/admin_manual/installation/nginx.rst index 3984f3d17..853d21414 100644 --- a/admin_manual/installation/nginx.rst +++ b/admin_manual/installation/nginx.rst @@ -140,9 +140,9 @@ 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|woff|svg|gif)$ { try_files $uri /index.php$uri$is_args$args; - add_header Cache-Control "public, max-age=7200"; + add_header Cache-Control "public, max-age=15778463"; # Add headers to serve security related headers (It is intended to # have those duplicated to the ones above) # Before enabling Strict-Transport-Security headers please read into @@ -164,7 +164,7 @@ webroot of your nginx installation. In this example it is access_log off; } - location ~* \.(?:png|html|ttf|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; @@ -284,9 +284,9 @@ 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|woff|svg|gif)$ { try_files $uri /nextcloud/index.php$uri$is_args$args; - add_header Cache-Control "public, max-age=7200"; + add_header Cache-Control "public, max-age=15778463"; # Add headers to serve security related headers (It is intended # to have those duplicated to the ones above) # Before enabling Strict-Transport-Security headers please read @@ -302,7 +302,7 @@ your nginx installation. access_log off; } - location ~* \.(?:png|html|ttf|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;