From 717f0f9f4452232b5888bbd4bd66ef130ce3a71f Mon Sep 17 00:00:00 2001 From: Gofannon <17145502+Gofannon@users.noreply.github.com> Date: Fri, 15 May 2020 12:53:36 +0200 Subject: [PATCH] [Fix] caching pictures that didn't work (#65) Set HTTP Headers 'Expires' on the correct PATH... Co-authored-by: Gofannon --- conf/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 64fc3ba..5cb057b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -39,12 +39,12 @@ location __PATH__/ { } # Deny Access to htaccess-Files for Apache - location ~ /\.ht { + location ~ __PATH__/\.ht { deny all; } # Serve static files - location ~ ^/lib.*\.(gif|png|ico|jpg)$ { + location ~ ^__PATH__/lib.*\.(gif|png|ico|jpg)$ { expires 30d; }