Lines Matching defs:cache

22 APLOG_USE_MODULE(cache);
177 /* per directory cache disable */
182 /* global cache disable */
240 * Try obtain a cache wide lock on the given cache key.
256 * or when a request arrives containing a Cache-Control: no-cache. At
260 apr_status_t cache_try_lock(cache_server_conf *conf, cache_request_rec *cache,
286 if (!cache->key) {
289 * Try to use the key of a possible open but stale cache
292 if (cache->handle != NULL) {
293 h = cache->handle;
296 h = cache->stale_handle;
301 cache->key = apr_pstrdup(r->pool, h->cache_obj->key);
304 cache_generate_key(r, r->pool, &cache->key);
309 lockname = ap_cache_generate_name(r->pool, 0, 0, cache->key);
325 "Could not create a cache lock directory: %s",
337 "Could not stat a cache lock file: %s",
360 * Remove the cache lock, if present.
372 cache_request_rec *cache, request_rec *r, apr_bucket_brigade *bb)
410 if (!cache->key) {
411 cache_generate_key(r, r->pool, &cache->key);
415 lockname = ap_cache_generate_name(r->pool, 0, 0, cache->key);
431 int ap_cache_check_no_cache(cache_request_rec *cache, request_rec *r)
445 * - RFC2616 14.9.4 End to end reload, Cache-Control: no-cache, or Pragma:
446 * no-cache. The server MUST NOT use a cached copy when responding to such
451 if (!cache->control_in.parsed) {
455 ap_cache_control(r, &cache->control_in, cc_req, pragma, r->headers_in);
458 if (cache->control_in.no_cache) {
474 int ap_cache_check_no_store(cache_request_rec *cache, request_rec *r)
486 * no-store arrives, do not serve from or store to the cache.
490 if (!cache->control_in.parsed) {
494 ap_cache_control(r, &cache->control_in, cc_req, pragma, r->headers_in);
497 if (cache->control_in.no_store) {
514 int cache_check_freshness(cache_handle_t *h, cache_request_rec *cache,
534 * - RFC2616 14.9.4 End to end reload, Cache-Control: no-cache. no-cache
540 * - RFC2616 14.32 Pragma: no-cache This is treated the same as
541 * Cache-Control: no-cache.
568 ap_cache_control(r, &cache->control_in, cc_req, pragma, r->headers_in);
570 if (cache->control_in.no_cache) {
588 * The cached entity contained Cache-Control: no-cache, or a
589 * no-cache with a header present, or a private with a header
609 maxage_req = cache->control_in.max_age_value;
637 if (cache->control_in.max_stale) {
638 if(cache->control_in.max_stale_value != -1) {
639 maxstale = cache->control_in.max_stale_value;
658 if (!conf->ignorecachecontrol && cache->control_in.min_fresh) {
659 minfresh = cache->control_in.min_fresh_value;
741 * At any time, a request marked "no-cache" will force a refresh,
747 status = cache_try_lock(conf, cache, r);
776 "Attempt to obtain a cache lock for stale "
998 if (!strcmp(token, "no-cache")) {
1002 else if (!strcasecmp(token, "no-cache")) {
1018 if (!strcmp(token, "no-cache")) {
1025 else if (!strncasecmp(token, "no-cache", 8)) {
1136 * exist as tokens after the no-cache and private tokens.
1151 if (!strncmp(token, "no-cache", 8)
1152 || !strncasecmp(token, "no-cache", 8)) {
1194 * headers table that are allowed to be stored in a cache.
1242 * headers table that are allowed to be stored in a cache.
1251 * headers table that are allowed to be stored in a cache;