mod_headers is not enabled by default

Bug #1944765 reported by Galen Charlton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.6
Fix Released
Medium
Unassigned

Bug Description

The Apache module mod_headers is not enabled by default in a new Evergreen installation. As a consequence, various directives in the stock eg_vhost.conf are never activated. The one that can really matter is this one:

  <Directory "@localstatedir@/web/eg2/en-US">
      FallbackResource /eg2/en-US/index.html
      <Files "index.html">
        <IfModule mod_headers.c>
          Header set Cache-Control "no-cache, no-store, must-revalidate"
          Header set Pragma "no-cache"
          Header set Expires 0
        </IfModule>
      </Files>
  </Directory>

If mod_headers is not active, the Angular staff client application's index page defaults to a cache period of 24 hours, which means that updates to the Angular app might not be picked up by the browser after an upgrade right away.

Evergreen 3.6+

Galen Charlton (gmc)
Changed in evergreen:
milestone: none → 3.7.2
importance: Undecided → Medium
Revision history for this message
Galen Charlton (gmc) wrote :

Patches are available in the following branch:

working/user/gmcharlt/lp1944765_enable_mod_headers / https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/gmcharlt/lp1944765_enable_mod_headers

tags: added: install pullrequest
Revision history for this message
Jason Boyer (jboyer) wrote :

Tested on Stretch and mod_headers was enabled after running Makefile.install as expected. Signoff is here: https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/jboyer/lp1944765_mod_headers_signoff / working/user/jboyer/lp1944765_mod_headers_signoff

tags: added: signedoff
Revision history for this message
Chris Sharp (chrissharp123) wrote :

Pushed to master with an additional commit to add this to the new Debian 11 "bullseye" Makefile.install script. Thanks, Galen and Jason!

Revision history for this message
Chris Sharp (chrissharp123) wrote :

Pushed the non-bullseye commit to 3.6 and 3.7.

Changed in evergreen:
status: New → Fix Committed
tags: added: install-upgrade
removed: install
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.