httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruediger Pluem <rpl...@apache.org>
Subject Re: svn commit: r992625 - in /httpd/httpd/trunk: CHANGES modules/cache/cache_storage.c modules/cache/cache_util.c modules/cache/mod_cache.h
Date Sun, 05 Sep 2010 17:05:41 GMT


On 09/04/2010 05:20 PM, minfrin@apache.org wrote:
> Author: minfrin
> Date: Sat Sep  4 15:20:30 2010
> New Revision: 992625
> 
> URL: http://svn.apache.org/viewvc?rev=992625&view=rev
> Log:
> mod_cache: Check the request to determine whether we are allowed
> to return cached content at all, and respect a "Cache-Control:
> no-cache" header from a client. Previously, "no-cache" would
> behave like "max-age=0".
> 
> Modified:
>     httpd/httpd/trunk/CHANGES
>     httpd/httpd/trunk/modules/cache/cache_storage.c
>     httpd/httpd/trunk/modules/cache/cache_util.c
>     httpd/httpd/trunk/modules/cache/mod_cache.h

> 
> Modified: httpd/httpd/trunk/modules/cache/mod_cache.h
> URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache.h?rev=992625&r1=992624&r2=992625&view=diff
> ==============================================================================
> --- httpd/httpd/trunk/modules/cache/mod_cache.h (original)
> +++ httpd/httpd/trunk/modules/cache/mod_cache.h Sat Sep  4 15:20:30 2010
> @@ -288,6 +288,15 @@ CACHE_DECLARE(apr_time_t) ap_cache_curre
>  CACHE_DECLARE(int) ap_cache_check_freshness(cache_handle_t *h, request_rec *r);
>  
>  /**
> + * Check the whether the request allows a cached object to be served as per RFC2616
> + * section 14.9.4 (Cache Revalidation and Reload Controls)
> + * @param h cache_handle_t
> + * @param r request_rec
> + * @return 0 ==> cache object may not be served, 1 ==> cache object may be served
> + */
> +CACHE_DECLARE(int) ap_cache_check_allowed(request_rec *r);
> +
> +/**

Nitpicking: IMHO we are changing a public API. Where is the minor bump?

Regards

RĂ¼diger


Mime
View raw message