Red Hat Bugzilla – Bug 663250
Apache not sending HTTP 'Expires' headers' for static content
Last modified: 2016-07-03 20:55:49 EDT
In our Satellite server I have added the following to /etc/httpd/conf.d/zz-spacewalk-www.conf and have been able to drastically reduce page load times and increase responsiveness of our Satellite server.
Header append Cache-Control "public"
We have been using this for approximately 4-5 weeks and have had no negative consequences. We have about 625 RHEL 4 and 5 boxes registered to the system which is a VMWare guest with 4vCPUs, 8GB of RAM, embedded database and Raw Mapped SAN LUNs for /rhnsat and /var/satellite. Between this change and the one suggested in bug 663248 our RHN Satellite server feels like an entirely new system.
I have taken a relatively conservative stance setting the header one day ahead and only on a few file extensions that are very likely to be static in nature.
Someone with a bit more insight into how Satellite works might be able to make more aggressive changes.
Could the Apache configuration be modified in later releases to set the Expires header on static files in the way I have suggested or similar?
No problem for my POV but we should make sure it does not affect monitoring graph images. I am not sure if they have .gif/.png extensions.
Patch applied (without jpg and jpeg) to Spacewalk master, de96e1065391cd6bbd85f4fcbbf9dd8e8cecacbb.
Satellite 5.6 has been released. This bug was tracked under the release.
This bug was either VERIFIED or RELEASE_PENDING (re-verified prior shortly
Moving to CLOSED CURRENT_RELEASE.
Text from Upgrade Erratum follows:
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.