Branch: Tag:

2002-10-14

2002-10-14 09:04:28 by 0

Hopefully fix problem where id->misc->cachekey was unnecessarily destroyed.
(Backported from 3.3.)

Rev: server/base_server/roxen.pike:1.801
Rev: server/protocols/http.pike:1.374

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.800 2002/08/19 14:59:06 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.801 2002/10/14 09:04:28 jonasw Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;
2987:    // Setting the cacheable flag is done in order to get headers sent which    // cause the image to be cached in the client even when using https    // sessions. However, this flag also controls whether the file should -  // be placed in the protocol-level cache, so we'll counter by destroying -  // the cache key if the request is authorized so this is avoided. +  // be placed in the protocol-level cache, so we'll counter by setting a +  // separate flag.    id->misc->cacheable = INITIAL_CACHEABLE; -  if (id->rawauth) -  id->misc->cachekey = 0; +  id->misc->no_proto_cache = 1;    return res;    }