From 4fad26aef2db70b7e72296a1b2d45b0107f6027e Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sat, 3 Jun 2023 10:37:59 +0100 Subject: [PATCH] Set custom Cache-Control header for wp-supercache Drops the 'must-revalidate' bit, which prevents serving stale pages, and sets a longer max-age to match the edge NGINX caching ttl. --- docker/wp-config.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/wp-config.php b/docker/wp-config.php index ea3339f7..35e099c7 100644 --- a/docker/wp-config.php +++ b/docker/wp-config.php @@ -115,6 +115,10 @@ define('SMTP_DEBUG', 0); */ define('COOKIEHASH', '7d12c307721c1cbe9412c639209d72aa'); +/* Custom Cache-Control headers for WP-SuperCache. + * These are set to match our edge nginx caches. +define('WPSC_CACHE_CONTROL_HEADER', 'max-age=600'); + /**#@+ * Authentication Unique Keys and Salts. * -- GitLab