From 14bb64df9dcdd964e23520ba53fdb02925e58ac9 Mon Sep 17 00:00:00 2001 From: gravel Date: Mon, 23 Dec 2024 13:58:52 +0000 Subject: [PATCH] performance --- etc/nginx/main.conf | 7 +------ sites/+components/footer.php | 3 +++ sites/+components/index-header.php | 6 ++++++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/etc/nginx/main.conf b/etc/nginx/main.conf index 7429b7d..bc2383a 100644 --- a/etc/nginx/main.conf +++ b/etc/nginx/main.conf @@ -1,11 +1,6 @@ error_page 404 /error/404/index.html; - location /icons { - expires 60m; - # add_header Cache-Control "max-age=3600"; - } - - location /qr-codes { + location / { # while an underestimate, # this prevents us from tracking users across visits expires 60m; diff --git a/sites/+components/footer.php b/sites/+components/footer.php index 7432537..5e6205b 100644 --- a/sites/+components/footer.php +++ b/sites/+components/footer.php @@ -120,7 +120,10 @@ if (basename($_SERVER['SCRIPT_FILENAME']) == "index.php"): >(ℹ)