From 8062861efc7b99e805f85cb9295e9d2c11b356d8 Mon Sep 17 00:00:00 2001 From: Sander Striker Date: Mon, 14 Feb 2005 09:46:19 +0000 Subject: [PATCH] Improve interaction with caches in mod_dav. * modules/dav/main/mod_dav.c (dav_method_get): Check for conditionals. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@153754 13f79535-47bb-0310-9956-ffa450edef68 --- modules/dav/main/mod_dav.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c index 71bdaea53d7..59bada16ed0 100644 --- a/modules/dav/main/mod_dav.c +++ b/modules/dav/main/mod_dav.c @@ -813,6 +813,7 @@ static int dav_method_get(request_rec *r) { dav_resource *resource; dav_error *err; + int status; /* This method should only be called when the resource is not * visible to Apache. We will fetch the resource from the repository, @@ -836,6 +837,12 @@ static int dav_method_get(request_rec *r) return dav_handle_err(r, err, NULL); } + /* Handle conditional requests */ + status = ap_meets_conditions(r); + if (status) { + return status; + } + if (r->header_only) { return DONE; } -- 2.47.3