httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Akins <brian.ak...@turner.com>
Subject [PATCH] simplify when ignorcachecontrol
Date Wed, 25 Jan 2006 20:34:53 GMT
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");

Mime
View raw message