]> granicus.if.org Git - apache/commitdiff
mod_disk_cache: If the Vary'd content is stale, we can handle it via our
authorJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 17 May 2007 18:17:23 +0000 (18:17 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 17 May 2007 18:17:23 +0000 (18:17 +0000)
freshness tests which will attempt to revalidate the content.

* modules/cache/mod_disk_cache.c
  (open_entity): If the root Vary index is stale, we don't need to throw away
  potentially stale content - we can try to refresh it.

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

modules/cache/mod_disk_cache.c

index f1a34d51e50aadcf0e52d24bb5b0f0bc92773bd3..3d71eb8128512055eede8bb46bcdf3fcaf295f57 100644 (file)
@@ -422,10 +422,6 @@ static int open_entity(cache_handle_t *h, request_rec *r, const char *key)
         len = sizeof(expire);
         apr_file_read_full(dobj->hfd, &expire, len, &len);
 
-        if (expire < r->request_time) {
-            return DECLINED;
-        }
-
         varray = apr_array_make(r->pool, 5, sizeof(char*));
         rc = read_array(r, varray, dobj->hfd);
         if (rc != APR_SUCCESS) {