httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Verbeeck <>
Subject [PATCH] PR 16521 -- caches MUST treat invalid Expires values as in the past
Date Mon, 09 Jun 2003 13:26:14 GMT

PR 16521 states that mod_cache caches and returns responses that have an 
invalid Expires header (value is 0 or yesterday).  The attached patch 
resolves this issue.

Some explanation:
- when apr_date_parse_http returns APR_DATE_BAD, the local variable 
containing the expires header was reset to NULL;
- the check a bit lower in the code:

	if (exps != NULL && exp == APR_DATE_BAD) {

would always fail because when exp equals APR_DATE_BAD, exps was always 


View raw message