1
0
mirror of https://github.com/apache/httpd.git synced 2025-07-29 09:01:18 +03:00

mod_cache: Honour Cache-Control: no-store in a request.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1479222 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Graham Leggett
2013-05-05 01:12:48 +00:00
parent 4d2b3c1a7d
commit 0eb8aa4a48
5 changed files with 64 additions and 16 deletions

View File

@ -239,7 +239,16 @@ typedef struct {
* @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(cache_request_rec *cache, request_rec *r);
int ap_cache_check_no_cache(cache_request_rec *cache, request_rec *r);
/**
* Check the whether the request allows a cached object to be stored as per RFC2616
* section 14.9.2 (What May be Stored by Caches)
* @param cache cache_request_rec
* @param r request_rec
* @return 0 ==> cache object may not be served, 1 ==> cache object may be served
*/
int ap_cache_check_no_store(cache_request_rec *cache, request_rec *r);
/**
* Check the freshness of the cache object per RFC2616 section 13.2 (Expiration Model)