From dc185f1d80c0e0de3c4f7e1aec04a0d135b5559a Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sat, 3 Jun 2023 22:47:07 +0100
Subject: [PATCH] Reduce the cache-control time to 60s

The WP-Supercache Apache caching will anyway cover NGINX
requests for 300s.
---
 docker/conf/cont-init.d/50cache-htaccess | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docker/conf/cont-init.d/50cache-htaccess b/docker/conf/cont-init.d/50cache-htaccess
index 7d7b6828..14c69ee4 100755
--- a/docker/conf/cont-init.d/50cache-htaccess
+++ b/docker/conf/cont-init.d/50cache-htaccess
@@ -7,9 +7,9 @@ if [ ! -e "$cache_dir/.htaccess" ]; then
     cat >"$cache_dir/.htaccess" <<EOF
 Options -Indexes
 Header set Vary "Accept-Encoding, Cookie"
-Header set Cache-Control "max-age=300"
+Header set Cache-Control "max-age=60"
 ExpiresActive On
-ExpiresByType text/html A300
+ExpiresByType text/html A60
 EOF
 fi
 
-- 
GitLab