diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-07-17 21:10:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-07-17 21:10:39 +0000 |
commit | fb3b6d13b8e9f594b248b0485af0c9429d3c7ee1 (patch) | |
tree | b55083b80df40a44639bad4bd42746a6e34ed2a2 /includes/bootstrap.inc | |
parent | 57fe5103daf5db65cd43f309e0f22f5c4781605d (diff) | |
download | brdo-fb3b6d13b8e9f594b248b0485af0c9429d3c7ee1.tar.gz brdo-fb3b6d13b8e9f594b248b0485af0c9429d3c7ee1.tar.bz2 |
- Patch #231190 by eli, mfb: page cache didn't work with HEAD requests.
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r-- | includes/bootstrap.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 63f704a1d..06a154197 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -549,7 +549,7 @@ function page_get_cache() { $cache = NULL; - if (!$user->uid && $_SERVER['REQUEST_METHOD'] == 'GET' && count(drupal_set_message()) == 0) { + if (!$user->uid && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD') && count(drupal_set_message()) == 0) { $cache = cache_get($base_root . request_uri(), 'cache_page'); if (empty($cache)) { |