From 8b762c67e104c78e266611d072b624eb20d93fca Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 3 May 2022 12:42:28 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index bffb800..71c1b3f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,12 +1,3 @@ -# Expires mappings -map $sent_http_content_type $expires { - default off; - text/html epoch; - text/css max; - application/javascript max; - ~image/ max; -} - location ^~ /.well-known { # The following 6 rules are borrowed from `.htaccess` @@ -71,6 +62,15 @@ location ^~ __PATH__/ { # always provides the desired behaviour. index index.php index.html __PATH__/index.php$request_uri; + # Expires mappings + map $sent_http_content_type $expires { + default off; + text/html epoch; + text/css max; + application/javascript max; + ~image/ max; + } + # Default Cache-Control policy expires $expires;