Commit aff70e77 authored by Bill Stoddard's avatar Bill Stoddard
Browse files

adding 304 support for if-Modified-Since request header, if a fresh cached...

adding 304 support for if-Modified-Since request header, if a fresh cached entity is present. backport from 2.1


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@104472 13f79535-47bb-0310-9956-ffa450edef68
parent 137c06fe
Loading
Loading
Loading
Loading
+7 −0
Changes for modules/experimental/mod_cache.c: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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,