Skip to content
  1. Sep 30, 2004
  2. Sep 29, 2004
  3. Sep 28, 2004
  4. Sep 26, 2004
  5. Sep 24, 2004
  6. Sep 23, 2004
  7. Sep 22, 2004
  8. Sep 21, 2004
    • Justin Erenkrantz's avatar
      Fix Expires (freshness) handling in mod_cache. · c65e6d74
      Justin Erenkrantz authored
      Previously, if the cached copy was stale, the response would go into an
      indeterminate state.  Therefore, the freshness check must be done before we
      'accept' the response and, if it fails (i.e.  stale), we can't allow any side
      effects.
      
      This caused a number of changes to how mod_disk_cache reads its headers as
      ap_scan_script_header_err() purposely has side-effects and that's
      unacceptable.  So, factor out only what we need.
      
      Also, remove the broken conditional filter code as you can't reliably alter the
      filter list once the response is started.  (Regardless, cache_select_url()
      has the freshness checks now.)
      
      Assist to Sascha Schumann for reporting mod_cache was busted.
      
      
      git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105236 13f79535-47bb-0310-9956-ffa450edef68
      c65e6d74