]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Do not do Range requests if we use our own conditionals for validating
authorRuediger Pluem <rpluem@apache.org>
Thu, 13 Mar 2008 07:28:40 +0000 (07:28 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 13 Mar 2008 07:28:40 +0000 (07:28 +0000)
  a cache entity: If we get 304 the Range does not matter and otherwise the
  entity changed and we want to have the complete entity.

PR: 44579

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@636653 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/cache_storage.c

index 0ddf82dd39f0a2f9c6c2a5df8d2de6efdfe22e08..7b99f3eda9132c59ad3a062c5b158a21d7b66369 100644 (file)
@@ -286,6 +286,13 @@ int cache_select(request_rec *r)
                 apr_table_unset(r->headers_in, "If-Range");
                 apr_table_unset(r->headers_in, "If-Unmodified-Since");
 
+                /*
+                 * Do not do Range requests with our own conditionals: If
+                 * we get 304 the Range does not matter and otherwise the
+                 * entity changed and we want to have the complete entity
+                 */
+                apr_table_unset(r->headers_in, "Range");
+
                 etag = apr_table_get(h->resp_hdrs, "ETag");
                 lastmod = apr_table_get(h->resp_hdrs, "Last-Modified");