Bug 168850
Summary: | mod_expires doesn't correctly add Expires headers for HTTP 304 pages | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Tarun Reddy <tvr1> | ||||
Component: | httpd | Assignee: | Joe Orton <jorton> | ||||
Status: | CLOSED ERRATA | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3.0 | CC: | swilson, tao | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
URL: | http://svn.apache.org/viewcvs.cgi?rev=102210&view=rev | ||||||
Whiteboard: | |||||||
Fixed In Version: | RHBA-2007-0445 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-06-11 18:42:12 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Tarun Reddy
2005-09-20 17:35:36 UTC
Actually the URL is in the Additional Bug Information Created attachment 119046 [details]
patch for use in httpd src rpm. Applies against httpd-2.0.46-46.3.ent
I added this patch as the last patch of my httpd src rpm and rebuilt. It fixes
the issue.
Thanks for the report. We're aware of the problem and the resolution, but adding this patch as-is would mean that old versions of the httpd binary could not load the new mod_expires DSO, which can cause existing installations to crash when the upgrade is installed. (i.e if the upgrade is installed then the old httpd binary is SIGHUPed to reload DSOs) Note also that this bug does not affect RHEL4. We have also run into this issue. The missing Expires header on 304 responses does not appear to be corrected in the latest httpd-2.0.46-54.ent package. Any idea when a fix will be generally available? According to comment #3, it won't ever be fixed. I've resorted to creating my own patched RPM. You can download the RPMS (both src and i386) at my site: http://www.rallydev.com/downloads/ This is NOT Redhat supported, but you can see the patch in the src.rpm. It is the file httpd-2.0.46-expires304.patch. Very similar to the patch I attached in comment #2. Please restart, not reload, after installing this RPM. Thanks for the patch in comment #2. I was able to aply it successfully against both httpd-2.0.46-46.3.ent.src.rpm and httpd-2.0.46-54.ent.src.rpm. I had no problems installing the result with an httpd restart. I'm surprised more folks haven't complained about this issue. It's reportedly killing some of the more latency sensitive vxml applications we run. I guess there's always httpd source and rpm's from Apache, but I just hate to drift from the RHEL3 packages unless absolutely necessary. I'll also test your httpd-2.0.46-54.1.ent packages from http://www.rallydev.com/downloads/ Experimental test packages are now available which contain a patch to correct this issue. These packages are unsupported and have not gone through the Red Hat QA process. http://people.redhat.com/jorton/Taroon-httpd/ Any feedback from testing these packages is very welcome. I've successfully tested the packages from http://people.redhat.com/jorton/Taroon-httpd/ against our apps. The Expires header appears on 304 responses and all seems well. I was also successful in using those RPMS. I just wished they were versioned 54.2 since they now conflict with the RPMS I had created and don't upgrade cleanly.... oh well. I removed the old httpd and mod_ssl and reinstalled, fixing all moved httpd.conf and ssl.conf Was Joe Orton's patch applied to the latest security release , i.e. httpd-2.0.46-56? From the change log and some cursory testing, it doesn't appear httpd-2.0.46-56 includes the 304 expiration patch. I've updated httpd-2.0.46-56 rpms with Joe's 304 expiration patch. They are available at http://www.rallydev.com/downloads/ . And now the link to them actually works. They are listed as httpd-2.0.46-56.1.ent.i386.rpm, etc. and the SRPM is available for your viewing. I guess this patch is never going to make it to RH3's httpd. Once again, taken Joe's patch and applied it to 2.0.46-57. http://www.rallydev.com/downloads/ . Please make sure to download correct RPMS I've successfully tested Tarun's packages from http://www.rallydev.com/downloads/ Thanks for creating them once again. Updated again. Applied to 2.0.46-61. http://www.rallydev.com/downloads/ For me, rpm -Uvh http://www.rallydev.com/downloads/httpd-2.0.46-61.1.ent.i386.rpm http://www.rallydev.com/downloads/mod_ssl-2.0.46-61.1.ent.i386.rpm *** Bug 167851 has been marked as a duplicate of this bug. *** An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0445.html |