From ac1ac803e4cc0ae81c0fc602f10566569729ed3a Mon Sep 17 00:00:00 2001 From: Bart Geesink Date: Wed, 4 Oct 2023 16:07:53 +0200 Subject: [PATCH] Docker apache configs: No cache for html files With this change, html files are no longer kept in browser cache so you no longer need to explicitly reload a page after an update of the application --- client/docker/appconf.conf | 4 ++++ welcome/docker/appconf.conf | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/client/docker/appconf.conf b/client/docker/appconf.conf index 26965fdb..c7e03c23 100644 --- a/client/docker/appconf.conf +++ b/client/docker/appconf.conf @@ -51,3 +51,7 @@ DocumentRoot /var/www/ Options -Indexes + +Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" +Header set Expires "Sun, 8 Jun 1986 08:06:00 GMT" + diff --git a/welcome/docker/appconf.conf b/welcome/docker/appconf.conf index d9fa76d3..801c7731 100644 --- a/welcome/docker/appconf.conf +++ b/welcome/docker/appconf.conf @@ -44,4 +44,8 @@ DocumentRoot /var/www/ Require all granted Options -Indexes + +Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" +Header set Expires "Sun, 8 Jun 1986 08:06:00 GMT" +