• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/apache-793/httpd/modules/cache/

Lines Matching +refs:ps +refs:left +refs:header

759 static const char *cache_header_cmp(apr_pool_t *pool, apr_table_t *left,
764 if ((h1 = cache_table_getm(pool, left, key))
967 /* Parse the cache control header */
992 * valid Expires or Cache Control header. If we find a either of
999 * another header(s) that explicitly allow it. For example, these
1000 * include the following: an Expires header (section 14.21); a
1014 /* if a broken Expires header is present, don't cache it */
1015 reason = apr_pstrcat(p, "Broken expires header: ", exps, NULL);
1019 /* if a Expires header is in the past, don't cache it */
1020 reason = "Expires header already expired; not cacheable";
1083 reason = "Vary header contains '*'";
1101 * Note: a new response that has an older Date header value than
1112 apr_table_t *left = cache->stale_handle->resp_hdrs;
1118 if (((reason = cache_header_cmp(r->pool, left, right, "Allow")))
1119 || ((reason = cache_header_cmp(r->pool, left, right,
1121 || ((reason = cache_header_cmp(r->pool, left, right,
1123 || ((reason = cache_header_cmp(r->pool, left, right,
1125 || ((reason = cache_header_cmp(r->pool, left, right,
1127 || ((reason = cache_header_cmp(r->pool, left, right,
1129 || ((reason = cache_header_cmp(r->pool, left, right,
1131 || ((reason = cache_header_cmp(r->pool, left, right,
1133 || ((reason = cache_header_cmp(r->pool, left, right, "ETag")))
1134 || ((reason = cache_header_cmp(r->pool, left, right,
1136 /* contradiction: 304 Not Modified, but entity header modified */
1337 * We now want to update the cache file header information with
1363 /* no date header (or bad header)! */
1453 /* Write away header information to cache. It is possible that we are
1585 * Therefore, if this filter is left in, it must mean we need to toss any
1733 * The status is optionally saved to an X-Cache header, and the detail of
1735 * saved to an X-Cache-Detail header. This extra detail is useful for
1974 cache_server_conf *ps = apr_pcalloc(p, sizeof(cache_server_conf));
1977 ps->cacheenable = apr_array_make(p, 10, sizeof(struct cache_enable));
1979 ps->cachedisable = apr_array_make(p, 10, sizeof(struct cache_disable));
1980 ps->ignorecachecontrol = 0;
1981 ps->ignorecachecontrol_set = 0;
1983 ps->ignore_headers = apr_array_make(p, 10, sizeof(char *));
1984 ps->ignore_headers_set = CACHE_IGNORE_HEADERS_UNSET;
1986 ps->ignorequerystring = 0;
1987 ps->ignorequerystring_set = 0;
1989 ps->quick = 1;
1990 ps->quick_set = 0;
1992 ps->ignore_session_id = apr_array_make(p, 10, sizeof(char *));
1993 ps->ignore_session_id_set = CACHE_IGNORE_SESSION_ID_UNSET;
1994 ps->lock = 0; /* thundering herd lock defaults to off */
1995 ps->lock_set = 0;
1998 ps->lockpath = apr_pstrcat(p, tmppath, DEFAULT_CACHE_LOCKPATH, NULL);
2000 ps->lockmaxage = apr_time_from_sec(DEFAULT_CACHE_MAXAGE);
2001 ps->x_cache = DEFAULT_X_CACHE;
2002 ps->x_cache_detail = DEFAULT_X_CACHE_DETAIL;
2003 return ps;
2008 cache_server_conf *ps = apr_pcalloc(p, sizeof(cache_server_conf));
2013 ps->cachedisable = apr_array_append(p,
2017 ps->cacheenable = apr_array_append(p,
2021 ps->ignorecachecontrol =
2025 ps->ignore_headers =
2029 ps->ignorequerystring =
2033 ps->ignore_session_id =
2037 ps->lock =
2041 ps->lockpath =
2045 ps->lockmaxage =
2049 ps->quick =
2053 ps->x_cache =
2057 ps->x_cache_detail =
2061 ps->base_uri =
2065 return ps;
2138 const char *header)
2146 if (!strcasecmp(header, "None")) {
2147 /* if header None is listed clear array */
2153 /* Only add header if no "None" has been found in header list
2158 (*new) = (char *)header;
2557 "Add a X-Cache header to responses. Default is off."),
2560 "Add a X-Cache-Detail header to responses. Default is off."),