httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental mod_cache.c
Date Thu, 12 Sep 2002 14:36:18 GMT
stoddard    2002/09/12 07:36:18

  Modified:    .        CHANGES
               modules/experimental mod_cache.c
  Log:
  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)
  
  Submitted by:	Kris Verbeeck <krisv@be.ubizen.com>
  Reviewed by:	Bill Stoddard
  
  Revision  Changes    Path
  1.922     +4 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.921
  retrieving revision 1.922
  diff -u -r1.921 -r1.922
  --- CHANGES	10 Sep 2002 19:41:41 -0000	1.921
  +++ CHANGES	12 Sep 2002 14:36:18 -0000	1.922
  @@ -1,4 +1,8 @@
   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]
   
  
  
  
  1.58      +4 -0      httpd-2.0/modules/experimental/mod_cache.c
  
  Index: mod_cache.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_cache.c,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- mod_cache.c	4 Sep 2002 09:10:59 -0000	1.57
  +++ mod_cache.c	12 Sep 2002 14:36:18 -0000	1.58
  @@ -538,6 +538,10 @@
                && 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.
                */
  
  
  

Mime
View raw message