httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: httpd-2.0/modules/metadata mod_expires.c
Date Tue, 21 Sep 2004 22:48:16 GMT
jerenkrantz    2004/09/21 15:48:16

  Modified:    modules/metadata mod_expires.c
  Log:
  In order for mod_expires to work with mod_cache, mod_expires has to go first.
  Otherwise, mod_cache has no clue that the response has a limited lifetime.
  
  Revision  Changes    Path
  1.55      +4 -1      httpd-2.0/modules/metadata/mod_expires.c
  
  Index: mod_expires.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/metadata/mod_expires.c,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -u -r1.54 -r1.55
  --- mod_expires.c	3 Apr 2004 23:22:18 -0000	1.54
  +++ mod_expires.c	21 Sep 2004 22:48:16 -0000	1.55
  @@ -541,8 +541,11 @@
   }
   static void register_hooks(apr_pool_t *p)
   {
  +    /* mod_expires needs to run *before* the cache save filter which is
  +     * AP_FTYPE_CONTENT_SET-1.  Otherwise, our expires won't be honored.
  +     */
       ap_register_output_filter("MOD_EXPIRES", expires_filter, NULL,
  -                              AP_FTYPE_CONTENT_SET);
  +                              AP_FTYPE_CONTENT_SET-2);
       ap_hook_insert_error_filter(expires_insert_filter, NULL, NULL, APR_HOOK_MIDDLE);
       ap_hook_insert_filter(expires_insert_filter, NULL, NULL, APR_HOOK_MIDDLE);
   }
  
  
  

Mime
View raw message