3cc1b27028708643374be2b8de220ce509429594 1626416 |
|
20-Sep-2014 |
covener |
use actual error code in AH00779 |
e4aba97065b37467c57908859c7262a7ccb47187 1624234 |
|
11-Sep-2014 |
jkaluza |
SECURITY (CVE-2014-3581): Fix a mod_cache NULL pointer deference
in Content-Type handling.
mod_cache: Avoid a crash when Content-Type has an empty value. PR56924.
Submitted By: Mark Montague <mark catseye.org>
Reviewed By: Jan Kaluza |
6f61c36ed87866636fbc8bae4da3842205d81e5b 1611978 |
|
20-Jul-2014 |
jailletc36 |
Add missing APLOGNO.
Refactor to keep APLOGNO on the same line as ap_log_error, when applicable. |
d9a7efb3049bac84e88bdaa02442a641c55c2660 1597533 |
|
26-May-2014 |
jkaluza |
mod_cache: try to use the key of a possible open but stale cache entry
if we have one in cache_try_lock(). PR 50317
Submitted by: Ruediger Pluem |
96d8b42eba2f8de302b45d8a2791ece8d9b646f4 1594648 |
|
14-May-2014 |
ylavic |
mod_cache: follow up to r1594643.
Avoid table lookup if not necessary (fast path first). |
04b14c36907da8903a5f70897039908892812c72 1594643 |
|
14-May-2014 |
ylavic |
mod_cache: follow up to r1591328.
Define the cache_merge_headers_out() function to merge r->err_headers_out into
r->headers_out and add the ones from r->content_type/encoding if available.
Use it in ap_cache_cacheable_headers_out() where the same is done and in
cache_save_filter() where this has to be done before updating the entry. |
fbd0ebcfa87815024a9f1df60d05f9c266c07a6b 1588704 |
|
19-Apr-2014 |
covener |
Fix errors with CacheLock on Windows:
cache_util.c(757): (OS 80)The file exists. : [client 127.0.0.1:63889]
AH00784: Attempt to obtain a cache lock for stale cached URL failed,
revalidating entry anyway: |
2b82678319a66fd9caad8827ca9b38d2412a5abd 1479222 |
|
05-May-2013 |
minfrin |
mod_cache: Honour Cache-Control: no-store in a request. |
f27c90ecdefe634bd5f9c529d8658d3a3b441303 1478748 |
|
03-May-2013 |
minfrin |
mod_cache: Make sure Vary processing handles multivalued Vary headers and
multivalued headers referred to via Vary. |
a2e1bbb77dd09c6a60f2dc18f831000e49add31e 1478382 |
|
02-May-2013 |
minfrin |
mod_cache: Ignore response headers specified by no-cache=header and
private=header as specified by RFC2616 14.9.1 What is Cacheable. Ensure
that these headers are still processed when multiple Cache-Control
headers are present in the response. PR 54706 |
deec48c67d4786bc77112ffbf3a4e70b931097ed 1478140 |
|
01-May-2013 |
minfrin |
mod_cache: Invalidate cached entities in response to RFC2616 Section
13.10 Invalidation After Updates or Deletions. PR 15868
Resolves outstanding issue with r1070179 as per
http://www.gossamer-threads.com/lists/apache/dev/395830?do=post_view_threaded#395830 |
42321dd0e2ecbd71d0f9b90eb583b7bf3342cadc 1352534 |
|
21-Jun-2012 |
jorton |
* modules/cache/cache_util.c (write_write_order): Remove redundant
double assignment, caught by Coverity. No functional change. |
36eb29c857156f18d04273d9726ebd64bc5940ef 1220467 |
|
18-Dec-2011 |
sf |
Avoid segfault if url->hostname is NULL and filter->hostname is "*" or ".".
Found by clang. |
dd69a6c86dc1c36e5edf17af1e5f7d89a8112409 1209798 |
|
03-Dec-2011 |
minfrin |
mod_cache: Remove ap_cache_liststr(), it duplicates ap_find_token(). |
185aa71728867671e105178b4c66fbc22b65ae26 1209766 |
|
03-Dec-2011 |
sf |
Add lots of unique tags to error log messages |
e782ab2767293d03df994ab07428dd88551649b3 1135083 |
|
13-Jun-2011 |
sf |
Avoid some memory allocations by using apr_table_setn where the string
arguments are const.
Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr>
PR: 51357 |
ffae06377667a5d8f9699ac7512134de7000a83d 1080834 |
|
12-Mar-2011 |
minfrin |
mod_cache: Make CacheEnable and CacheDisable configurable per
directory in addition to per server, making them work from within
a LocationMatch. |
1fa6fa0f7a46fe19d6d26a58fcb9106efae04359 1070699 |
|
15-Feb-2011 |
minfrin |
Don't skip the first character, as it may be a quote, which is handled
by the walk below. |
b506a1049fb9c70f409e25f0ba787664e7c759ac 1070627 |
|
14-Feb-2011 |
trawick |
fix theoretical const issue in call to strchr() |
2c132b1e3610da2fb9e6b3594a313efa3ff29e22 1070075 |
|
12-Feb-2011 |
minfrin |
mod_cache: We must ignore quoted-string values that appear in a
Cache-Control header. PR 50199. |
808a26d70f28498b9d7252a70d9fb23def781901 1069942 |
|
11-Feb-2011 |
minfrin |
mod_cache: Respect s-maxage as described by RFC2616 14.9.3, which must
take precedence if present. PR 35247. |
bbba414c5bbf770e505778265bbe7a4a0e4fbdaa 1030299 |
|
03-Nov-2010 |
niq |
mod_cache: correctly parse quoted strings in cache headers.
PR 50199 |
8b06738bcb3af890b87d19fcaca2eb143c8500ca 1023955 |
|
18-Oct-2010 |
minfrin |
Be more efficient when handling the Expires header. |
587909d32387845b4470c84c025638375c031bca 1023462 |
|
17-Oct-2010 |
minfrin |
Use ap_log_rerror() instead of ap_log_error() across mod_cache and
mod_disk_cache. |
6c186fedeef5001fbbeb697f4c3970aa0a21c1f4 1023399 |
|
17-Oct-2010 |
minfrin |
Support Cache-Control: no-cache with a header name, and private with a
header name, which causes a cached entry to require revalidation (ie
is always not-fresh), as per RFC2616 14.9.1. |
8fa6d2c9f0421ed96f64c660f6fa3546f37bd014 1023387 |
|
17-Oct-2010 |
minfrin |
Complete the optimisation of Cache-Control header parsing. Make the
cache_control_t structure public so as to be available to mod_disk_cache. |
47a779c5a45b90812ad3ec1bff98134fd3f8e66a 1023360 |
|
16-Oct-2010 |
minfrin |
Begin the process of optimising the parsing of Cache-Control headers. Parse
the incoming Cache-Control and Pragma headers once, instead of on each test. |
15227600187741f54b4f3ab0eedf8360c62282f8 1004220 |
|
04-Oct-2010 |
minfrin |
Remove the attempt to pass the cache key into the lock functions, use
cache->key instead for this. Fixes a segfault caused when cache->key
was populated, but the passed in key was not. |
528d669867298f6743187e798121893290135fd8 1000247 |
|
22-Sep-2010 |
minfrin |
Make cache_provider_list and cache_request_rec private by moving them
out of mod_cache.h. |
561ff82c9a4873234adbd99ddd5bbfdd2466ac53 1000211 |
|
22-Sep-2010 |
minfrin |
Make cache_server_conf, cache_enable and cache_disable private. Remove
public prefixes from ap_cache_accept_headers, ap_cache_try_lock and
ap_cache_get_providers. |
e8386239a75748f4701a4971ad8d257aedfd7bcb 1000159 |
|
22-Sep-2010 |
minfrin |
Remove deprecated ap_cache_cacheable_hdrs_out. |
34f6b45d02039cb734332bc1cecf16c1dcd8f2a5 1000152 |
|
22-Sep-2010 |
minfrin |
Remove the MOD_CACHE_REQUEST_REC hack, and pass the cache_request_rec
structure through mod_cache's function parameters in the usual way. |
6ea8a3f75a506155c7eaa8eead5503bed8658a9f 992809 |
|
05-Sep-2010 |
sf |
remove unused variables |
3b41ccdaa163f4e900bbf8a7aa6a366df033822d 992625 |
|
04-Sep-2010 |
minfrin |
mod_cache: Check the request to determine whether we are allowed
to return cached content at all, and respect a "Cache-Control:
no-cache" header from a client. Previously, "no-cache" would
behave like "max-age=0". |
708901b7dfd2948aab785ba73f9233bb26210dca 982012 |
|
03-Aug-2010 |
sf |
Pass the huge apr_uri_t structs by reference instead of by value |
36ef8f77bffe75d1aa327882be1b5bdbe2ff567a 951895 |
|
06-Jun-2010 |
sf |
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels |
41f02abbe5e62e690a4ab4f23a0875d4560925f7 933886 |
|
14-Apr-2010 |
rpluem |
* According to RFC2616 13.2.3 1. negative results of age calculations should
be replaced by zero.
Reported by: Ryujiro Shibuya <rshibuya gmail.com> |
54defe6da1aa891ead8e711668a84bf3a4e9a07f 821539 |
|
04-Oct-2009 |
minfrin |
Style fixes. |
9a817b6cd28edeefb89ad484e6a15b434b89e4ce 821538 |
|
04-Oct-2009 |
minfrin |
Remove the server_rec wired into uri_meets_conditions, the debugging
statements that required it were removed in the past, so wiring through
server_rec is no longer necessary. |
2af38cc44e48753913565b38a7a9f325f898a293 821333 |
|
03-Oct-2009 |
minfrin |
mod_cache: Fix uri_meets_conditions() so that CacheEnable will
match by scheme, or by a wildcarded hostname.
PR: 40169
Submitted by: Peter Grandi <pg_asf asf.for.sabi.co.uk>
Reviewed by: Graham Leggett |
4a315156bb61dcbae4d7b9769751832362fd148c 809665 |
|
31-Aug-2009 |
minfrin |
Add suggested parentheses around APR_STATUS_IS_ENOENT. |
ad89be82b37131208ee720bb3221e8c8e1bf2b0a 809440 |
|
31-Aug-2009 |
fuankg |
moved "finfo.mtime = 0;" after var declaration;
removed tab. |
4925c3916068520021d069924485e16af2168333 808723 |
|
28-Aug-2009 |
wrowe |
Add parenthesis for legibility and correcting association,
and axe an unused variable |
40bb37088275a35df1cd8cb2774b457c68d2b5e2 808656 |
|
27-Aug-2009 |
minfrin |
Make sure when adding a warning, that we don't duplicate an existing warning. |
e659202cdee59ca56484d1e0d0d7d68864fc60ca 808649 |
|
27-Aug-2009 |
minfrin |
When attempting to set the stale lock, we will pass try_lock twice. If we
already have the lock the first time, we must also have the lock the second
time. |
0e671dd2f7e74f76a903b3e6392a161e80bc0b1f 808220 |
|
27-Aug-2009 |
minfrin |
Reintroduce an optimisation lost in some cut and paste. The cache lock
is removed as soon as we see an EOS, or is removed immediately if a
failure has occurred. |
3c67b7956d44501360506a9f13a5011be73b30ec 808212 |
|
27-Aug-2009 |
minfrin |
mod_cache: Introduce the thundering herd lock, a mechanism to keep
the flood of requests at bay that strike a backend webserver as
a cached entity goes stale. |
da91b571a6df28a162edde18b785ecf73c60ad84 726796 |
|
15-Dec-2008 |
rpluem |
* Correctly save Content-Encoding of cachable entity.
PR: 46401
Submitted by: Dan Poirier <poirier pobox.com>
Reviewed by: rpluem |
d7125bcd117cff19f8a249decb5f77e94230bf54 649793 |
|
19-Apr-2008 |
rpluem |
* We need to use the headers_out table we merged above, not the original one. |
6dafbe869f4b41302bf981039e1294edd5eaf422 649792 |
|
19-Apr-2008 |
rpluem |
* Style fixes. No functional changes. |
6cfb9d691d5d785857bc3980c688ef4d9ed8423a 649791 |
|
19-Apr-2008 |
rpluem |
* Use the correct headers_out table for overlaying. |
213e520edc00641400771fc8f90b37a967a2d9eb 649460 |
|
18-Apr-2008 |
dirkx |
Centralize the error-header collapsing done when sending out cached replies. Mark the change in CHANGES as it may have unforseen fall out and/or may need to be reverted or done more subtle. |
3b3bfa1d92ac42a216348d4f57ca9749a680f6bb 649446 |
|
18-Apr-2008 |
martin |
Make it compile on pre-C99 compilers |
b032af090d23d565b8f817c77407b5084e2d4dda 649228 |
|
17-Apr-2008 |
rpluem |
* Style police. No functional changes. |
a449830d5caa5b9900fe64cc383658b3641f9810 649162 |
|
17-Apr-2008 |
dirkx |
Currently each of the caching module includes logic to implement
the hop-by-hop rules of rfc 2616 along with the entity response
rules. To make sure that they stay in sync; and to make it easier
to add (http) caching modules - this change moves them all into
one place (cache_util) and exposes a in-bound and out-bound
version to operate on the headers.
In short: we retire ap_cache_cacheable_hdrs_out() which was used
for both in- and out-put headers; and replace it by a single
ap_cache_cacheable_headers() which understands the hop-by-hop
rules. And then wrap this into an in- and out-put specific
ap_cache_cacheable_headers_in()/out() which we can teach things
about entity responses and so on.. The latter which will also
merge error and ensure content-type.
This API change bumps up the minor MM by one. |
d6e81217d873dc3b87fc4ffa5fbac2fad4191a15 645455 |
|
07-Apr-2008 |
pquerna |
Remove all references to CORE_PRIVATE. |
2615e49e7e16488b3e2f1f16c5b24956e738c50d 632749 |
|
02-Mar-2008 |
rpluem |
* If the cached entity contained Cache-Control: no-cache, treat it as stale
causing revalidation.
PR: 44511 |
24689c146145cfcb37dfc9bb2c0bfd60fcb8c635 535617 |
|
06-May-2007 |
rpluem |
* Prevent a segmentation fault if one of the Cache-Control headers
s-maxage, max-age, min-fresh, max-stale has no value assigned.
In this case ignore s-maxage, max-age, min-fresh. For max-stale
it is valid to set no value. In this case set max-stale to 1 year
to signal that the client is accepting a stale response of any age.
Submitted by: Niklas Edmundsson <nikke acc.umu.se>
Reviewed by: rpluem |
47d8d3d8c3092026d268457e5d53607a26d28945 450063 |
|
26-Sep-2006 |
minfrin |
mod_cache: From RFC3986 (section 6.2.3.) if a URI contains an
authority component and an empty path, the empty path is to be equivalent
to "/". It explicitly cites the following four URIs as equivalents:
http://example.com
http://example.com/
http://example.com:/
http://example.com:80/ |
842ae4bd224140319ae7feec1872b93dfd491143 420983 |
|
11-Jul-2006 |
fielding |
update license header text |
11e1b16b907afb7de0678e28fe4849d9029e2df8 411464 |
|
03-Jun-2006 |
rpluem |
* info->expire and info->date are in microseconds. So convert the difference
to seconds before comparing it to age which is in seconds.
PR: 39713
Submitted by: Owen Taylor <otaylor redhat.com>
Reviewed by: rpluem |
3d81f57512275ca06a60a9bcbd23c1f8b429fdf2 395228 |
|
19-Apr-2006 |
colm |
Update the copyright year in all .c, .h and .xml files |
e8f95a682820a599fe41b22977010636be5c2717 332306 |
|
10-Nov-2005 |
jim |
No functional Change: Removing trailing whitespace. This also
means that "blank" lines consisting of just spaces or
tabs are now really blank lines |
43c3e6a4b559b76b750c245ee95e2782c15b4296 332305 |
|
10-Nov-2005 |
jim |
No functional change: simple detabbing of indented code. |
e1477400d1a0b5d4750299102cb2708db0f13f47 293291 |
|
03-Oct-2005 |
colm |
Two minor whitespace cleanups. Syncs with the 2.2.x branch. |
89ebbccde2b87b469b9d6fdb606eeb943c12a824 239421 |
|
23-Aug-2005 |
colm |
Enhance CacheEnable/CacheDisable to control caching on a per-protocol, per-host
and per-path basis. Makes Cache(En|Dis)able useful for forward proxy servers. |
007ba11dc68651df7f872f35947ae82a595d9e02 179877 |
|
03-Jun-2005 |
pquerna |
'generate_name' is too generic to be in the public symbols. Rename it to ap_cache_generate_name. No functional changes. |
a73c87c20a0173965e7a15d4bec9eaf4ef8dfa2a 156567 |
|
08-Mar-2005 |
striker |
Make IgnoreCacheControl do what it implies when it comes to requests and
freshness checks.
* modules/cache/cache_util.c
(ap_cache_check_freshness): Ignore CacheControl: max-age and min-fresh
if IgnoreCacheControl is set. |
17d66412d9a287e7b509c48c9e72ae5976d9fe9a 156480 |
|
08-Mar-2005 |
striker |
Improve caching a bit more...
* modules/cache/cache_util.c
(ap_cache_check_freshness): On Cache-Control/Pragma no-cache force
revalidation by marking the resource as stale. Unless IgnoreCacheControl
is set ofcourse.
* modules/cache/mod_cache.c
(cache_url_handler): Remove Cache-Control/Pragma no-cache check and
accompagnying comment.
(cache_save_filter): Move FIXME comment to the correct location. |
abea01106c5493603a71af109297c730cc7ae0f7 156471 |
|
08-Mar-2005 |
striker |
Remove an unused function.
* cache_util.c
* mod_cache.imp
* mod_cache.h
(ap_cache_request_is_conditional): Removed. |
8e7fb6968047a527d1ccde25ad2aed20da5150dd 156401 |
|
07-Mar-2005 |
jerenkrantz |
* modules/cache/cache_util.c (ap_cache_check_freshness): Use r->headers_in not
the stored headers for the Cache-Control check.
Pointed out by: Sander Striker |
66c863abfe28fd753dba68c025f32ff768640387 153385 |
|
11-Feb-2005 |
jorton |
* modules/cache/mod_disk_cache.c (store_body): Fix format string
warnings; print integers using _FMT strings.
* modules/cache/cache_util.c (ap_cache_check_freshness): Remove unused
variable.
* modules/cache/cache_storage.c (cache_select_url): Remove unused
variable. |
be2d1ea526477ecca13d63dd51fae02c22aaa504 152679 |
|
08-Feb-2005 |
jerenkrantz |
Cleanup structures in mod_cache and friends to remove unused or unnecessary
fields. Also resolves a number of latent bugs due to the wrong fields being
accessed. |
08cb74ca432a8c24e39f17dedce527e6a47b8001 151408 |
|
04-Feb-2005 |
jerenkrantz |
Update copyright year to 2005 and standardize on current copyright owner line. |
74def8815c725f8128a4e76ab1f5704df80b024a 106737 |
|
27-Nov-2004 |
jerenkrantz |
At long last, promote mod_cache and friends out of experimental/.
Also, take quick pass through docs files to remove experimental label for them.
Reviewed by: Paul Querna, Bill Stoddard, Justin Erenkrantz |