URLs if the origin server does not explicitly provide an
Expires header on the response (RFC 2616 Section 13.9)
Submitted by: Kris Verbeeck <krisv@be.ubizen.com>
Reviewed by: Bill Stoddard
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96772
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.41
+ *) mod_cache: Do not cache responses to GET requests with query
+ URLs if the origin server does not explicitly provide an
+ Expires header on the response (RFC 2616 Section 13.9)
+ [Kris Verbeeck krisv@be.ubizen.com]
*) Fix memory leak in core_output_filter. [Justin Erenkrantz]
&& r->status != HTTP_NOT_MODIFIED)
/* if a broken Expires header is present, don't cache it */
|| (exps != NULL && exp == APR_DATE_BAD)
+ /* if query string present but no expiration time, don't cache it
+ * (RFC 2616/13.9)
+ */
+ || (r->args && exps == NULL)
/* if the server said 304 Not Modified but we have no cache
* file - pass this untouched to the user agent, it's not for us.
*/