]>
Commit | Line | Data |
---|---|---|
8d9a8184 | 1 | /* |
bbc27441 | 2 | * Copyright (C) 1996-2014 The Squid Software Foundation and contributors |
8d9a8184 | 3 | * |
bbc27441 AJ |
4 | * Squid software is distributed under GPLv2+ license and includes |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
8d9a8184 FC |
7 | */ |
8 | ||
bbc27441 AJ |
9 | #ifndef SQUID_REFRESHPATTERN_H_ |
10 | #define SQUID_REFRESHPATTERN_H_ | |
11 | ||
09a86349 AJ |
12 | #include "compat/GnuRegex.h" |
13 | ||
001d55dc | 14 | /// a representation of a refresh pattern. Currently a POD. |
1b2f0924 FC |
15 | class RefreshPattern |
16 | { | |
8d9a8184 FC |
17 | public: |
18 | const char *pattern; | |
19 | regex_t compiled_pattern; | |
20 | time_t min; | |
21 | double pct; | |
22 | time_t max; | |
23 | RefreshPattern *next; | |
24 | ||
25 | struct { | |
be4d35dc FC |
26 | bool icase; |
27 | bool refresh_ims; | |
28 | bool store_stale; | |
8d9a8184 | 29 | #if USE_HTTP_VIOLATIONS |
be4d35dc FC |
30 | bool override_expire; |
31 | bool override_lastmod; | |
32 | bool reload_into_ims; | |
33 | bool ignore_reload; | |
34 | bool ignore_no_store; | |
35 | bool ignore_must_revalidate; | |
36 | bool ignore_private; | |
37 | bool ignore_auth; | |
8d9a8184 FC |
38 | #endif |
39 | } flags; | |
40 | int max_stale; | |
41 | }; | |
42 | ||
43 | #endif /* SQUID_REFRESHPATTERN_H_ */ | |
f53969cc | 44 |