cache_disk_common.h revision 15ff8c621815e8337abc10638f2b2853ee6fd076
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file cache_disk_common.h
*
* @defgroup Cache_cache Cache Functions
* @ingroup MOD_DISK_CACHE
* @{
*/
#ifndef CACHE_DIST_COMMON_H
#define CACHE_DIST_COMMON_H
#define VARY_FORMAT_VERSION 5
#define DISK_FORMAT_VERSION 6
#define CACHE_HEADER_SUFFIX ".header"
#define CACHE_DATA_SUFFIX ".data"
#define CACHE_VDIR_SUFFIX ".vary"
#define AP_TEMPFILE_PREFIX "/"
#define AP_TEMPFILE_BASE "aptmp"
#define AP_TEMPFILE_SUFFIX "XXXXXX"
typedef struct {
/* Indicates the format of the header struct stored on-disk. */
/* The HTTP status code returned for this response. */
int status;
/* The size of the entity name that follows. */
/* The number of times we've cached this entity. */
/* Miscellaneous time values. */
/* The ident of the body file, so we can test the body matches the header */
/* Does this cached request have a body? */
int has_body:1;
int header_only:1;
/* The parsed cache control header */
#endif /* CACHE_DIST_COMMON_H */