You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Akins <br...@turner.com> on 2006/01/25 21:34:53 UTC
[PATCH] simplify when ignorcachecontrol
This is going to get blasted, I know. This greatly simplifies
ap_cache_check_freshness when we ignore cache control headers...
I primarily use cache in a reverse proxy situation with an app/origin
server in my control behind it. I do not care what freshness rules the
clients want me to follow. We are already breaking RFC, this just takes
it a step further.
--- cache_util.c.orig 2006-01-24 16:17:14.000000000 -0500
+++ cache_util.c 2006-01-25 15:31:12.000000000 -0500
@@ -201,6 +201,10 @@
*
*/
+ if (conf->ignorecachecontrol) {
+ return info->expire > r->request_time;
+ }
+
/* This value comes from the client's initial request. */
cc_req = apr_table_get(r->headers_in, "Cache-Control");
pragma = apr_table_get(r->headers_in, "Pragma");