Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently, boost_get_http_status only looks at a single header to determine the HTTP status of the returned page. This can lead to non 200 pages being cached. Attached is a patch to make boost_get_http_status more thorough to determine the response.
This is useful should a module determine a 500 or 400 series.
Comment | File | Size | Author |
---|---|---|---|
#2 | boost-status-1.patch | 871 bytes | halcyonCorsair |
boost-status.patch | 856 bytes | Josh Waihi | |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedComment #2
halcyonCorsair CreditAttribution: halcyonCorsair commentedRegex made more specific, patch attached.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedthanks & committed!