summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-07-17 21:10:39 +0000
committerDries Buytaert <dries@buytaert.net>2008-07-17 21:10:39 +0000
commitfb3b6d13b8e9f594b248b0485af0c9429d3c7ee1 (patch)
treeb55083b80df40a44639bad4bd42746a6e34ed2a2 /includes/common.inc
parent57fe5103daf5db65cd43f309e0f22f5c4781605d (diff)
downloadbrdo-fb3b6d13b8e9f594b248b0485af0c9429d3c7ee1.tar.gz
brdo-fb3b6d13b8e9f594b248b0485af0c9429d3c7ee1.tar.bz2
- Patch #231190 by eli, mfb: page cache didn't work with HEAD requests.
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 7263d0a5b..ee604fb9e 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -2490,7 +2490,7 @@ function _drupal_bootstrap_full() {
function page_set_cache() {
global $user, $base_root;
- if (!$user->uid && $_SERVER['REQUEST_METHOD'] == 'GET' && count(drupal_get_messages(NULL, FALSE)) == 0) {
+ if (!$user->uid && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD') && count(drupal_get_messages(NULL, FALSE)) == 0) {
// This will fail in some cases, see page_get_cache() for the explanation.
if ($data = ob_get_contents()) {
$cache = TRUE;