]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
adding 304 support for if-Modified-Since request header, if a fresh cached entity...
authorBill Stoddard <stoddard@apache.org>
Wed, 4 Aug 2004 02:35:07 +0000 (02:35 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 4 Aug 2004 02:35:07 +0000 (02:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@104472 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_cache.c

index 8c0f5f657750c14c2744f4204f18100d3ee98912..9cbc0ba5508f78f09f570ea3ded2d34ec02c84d5 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,