Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cache_common.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
26 #ifndef CACHE_COMMON_H
27 #define CACHE_COMMON_H
28 
29 /* a cache control header breakdown */
30 typedef struct cache_control {
31  unsigned int parsed:1;
32  unsigned int cache_control:1;
33  unsigned int pragma:1;
34  unsigned int no_cache:1;
35  unsigned int no_cache_header:1; /* no cache by header match */
36  unsigned int no_store:1;
37  unsigned int max_age:1;
38  unsigned int max_stale:1;
39  unsigned int min_fresh:1;
40  unsigned int no_transform:1;
41  unsigned int only_if_cached:1;
42  unsigned int public:1;
43  unsigned int private:1;
44  unsigned int private_header:1; /* private by header match */
45  unsigned int must_revalidate:1;
46  unsigned int proxy_revalidate:1;
47  unsigned int s_maxage:1;
48  unsigned int invalidated:1; /* has this entity been invalidated? */
49  apr_int64_t max_age_value; /* if positive, then set */
50  apr_int64_t max_stale_value; /* if positive, then set */
51  apr_int64_t min_fresh_value; /* if positive, then set */
52  apr_int64_t s_maxage_value; /* if positive, then set */
54 
55 #endif /* CACHE_COMMON_H */
56 
unsigned int min_fresh
Definition: cache_common.h:39
unsigned int no_cache
Definition: cache_common.h:34
unsigned int max_stale
Definition: cache_common.h:38
Definition: cache_common.h:30
struct cache_control cache_control_t
unsigned int only_if_cached
Definition: cache_common.h:41
unsigned int max_age
Definition: cache_common.h:37
unsigned int pragma
Definition: cache_common.h:33
unsigned int parsed
Definition: cache_common.h:31
unsigned int no_transform
Definition: cache_common.h:40
long apr_int64_t
Definition: apr.h:371
unsigned int no_store
Definition: cache_common.h:36
unsigned int no_cache_header
Definition: cache_common.h:35