]> granicus.if.org Git - apache/commitdiff
adding 304 support for if-Modified-Since request header,
authorJean-Jacques Clar <clar@apache.org>
Tue, 10 Feb 2004 17:50:43 +0000 (17:50 +0000)
committerJean-Jacques Clar <clar@apache.org>
Tue, 10 Feb 2004 17:50:43 +0000 (17:50 +0000)
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

modules/experimental/mod_cache.c

index d271a33e4ad753352e9b5957f4b320951d4cbb2e..410fbb2499ed7fa0e0a3e7be100f50814b6e3a5a 100644 (file)
@@ -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,