github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_4_58/include/cache_common.h (about) 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 17 /** 18 * @file cache_common.h 19 * @brief Common Cache structs 20 * 21 * @defgroup Cache_cache Cache Functions 22 * @ingroup MOD_CACHE 23 * @{ 24 */ 25 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 */ 53 } cache_control_t; 54 55 #endif /* CACHE_COMMON_H */ 56 /** @} */