From: Jean-Jacques Clar Date: Tue, 10 Feb 2004 17:50:43 +0000 (+0000) Subject: adding 304 support for if-Modified-Since request header, X-Git-Tag: pre_ajp_proxy~667 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab4f333c4e678929e2f6e81902b71d686d346516;p=apache adding 304 support for if-Modified-Since request header, if a fresh cached entity is present. Reviewed by: Paul J. Reder git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102630 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_cache.c b/modules/experimental/mod_cache.c index d271a33e4a..410fbb2499 100644 --- a/modules/experimental/mod_cache.c +++ b/modules/experimental/mod_cache.c @@ -173,6 +173,13 @@ static int cache_url_handler(request_rec *r, int lookup) if (lookup) { return OK; } + + info = &(cache->handle->cache_obj->info); + + if (info && info->lastmod) { + ap_update_mtime(r, info->lastmod); + } + rv = ap_meets_conditions(r); if (rv != OK) { ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,