From 9154fd988ab8ef53107aa37ab55ea251ed65a9b0 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 23 Sep 2021 16:11:42 -0400 Subject: [PATCH] LP#1944765: enable the Apache module mod_headers This patch enables mod_headers for Debian Stretch and Buster and Ubuntu Bionic and Focal during installation. Without mod_headers, the Angular staff client application can have its index page cached for 24 hours on a stock system, meaning that browsers will not consistently fetch the updated app after an upgrade. This patch does not change the Fedora Makefile as mod_headers is enabled by default on RHEL-like distributions. UPGRADE NOTES ------------- Existing Evergreen systems on Debian and Ubuntu should do the following to ensure that mod_headers is active: sudo a2enmod headers sudo systemctl restart apache2 To test ------- [1] Perform a fresh installation of Evergreen on Stretch, Buster, Bionic, or Focal. [2] Verify that mod_headers is enabled. [3] (Optional) Fetch the Angular staff client index page, e.g., /eg2/staff, and verify that the response headers call for not caching it. Signed-off-by: Galen Charlton Signed-off-by: Jason Boyer Signed-off-by: Chris Sharp --- Open-ILS/src/extras/install/Makefile.debian-buster | 1 + Open-ILS/src/extras/install/Makefile.debian-stretch | 1 + Open-ILS/src/extras/install/Makefile.ubuntu-bionic | 1 + Open-ILS/src/extras/install/Makefile.ubuntu-xenial | 1 + 4 files changed, 4 insertions(+) diff --git a/Open-ILS/src/extras/install/Makefile.debian-buster b/Open-ILS/src/extras/install/Makefile.debian-buster index a561a0a92b..6e00641488 100644 --- a/Open-ILS/src/extras/install/Makefile.debian-buster +++ b/Open-ILS/src/extras/install/Makefile.debian-buster @@ -79,6 +79,7 @@ export DEBS = \ export DEB_APACHE_MODS = \ expires\ + headers\ include\ proxy\ proxy_http\ diff --git a/Open-ILS/src/extras/install/Makefile.debian-stretch b/Open-ILS/src/extras/install/Makefile.debian-stretch index e5a9ce596f..0c4b52e882 100644 --- a/Open-ILS/src/extras/install/Makefile.debian-stretch +++ b/Open-ILS/src/extras/install/Makefile.debian-stretch @@ -79,6 +79,7 @@ export DEBS = \ export DEB_APACHE_MODS = \ expires\ + headers\ include\ proxy\ proxy_http\ diff --git a/Open-ILS/src/extras/install/Makefile.ubuntu-bionic b/Open-ILS/src/extras/install/Makefile.ubuntu-bionic index 519d063381..9128715f6f 100644 --- a/Open-ILS/src/extras/install/Makefile.ubuntu-bionic +++ b/Open-ILS/src/extras/install/Makefile.ubuntu-bionic @@ -76,6 +76,7 @@ export DEBS = \ export DEB_APACHE_MODS = \ expires\ + headers\ include\ proxy\ proxy_http\ diff --git a/Open-ILS/src/extras/install/Makefile.ubuntu-xenial b/Open-ILS/src/extras/install/Makefile.ubuntu-xenial index 9f67c14d19..ef674ef9d1 100644 --- a/Open-ILS/src/extras/install/Makefile.ubuntu-xenial +++ b/Open-ILS/src/extras/install/Makefile.ubuntu-xenial @@ -79,6 +79,7 @@ export DEBS = \ export DEB_APACHE_MODS = \ expires\ + headers\ include\ proxy\ proxy_http\ -- 2.11.0