Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //   // The Roxen WebServer main program.   //   // 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;      // Some headerfiles   #define IN_ROXEN   #include <roxen.h>   #include <config.h>   #include <module.h>   #include <variables.h>
Roxen.git/server/base_server/roxen.pike:2980:    return 0;    }    if( !(res = restore( na,id )) )    error("Draw callback did not generate any data\n");    }    res->stat = ({ 0, 0, 0, 900000000, 0, 0, 0, 0, 0 });       // 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;    }       mapping metadata( array|string|mapping data,    RequestID id,    int|void nodraw )    //! Returns a mapping of image metadata for an image generated from    //! the data given (as sent to @[store()]). If a non-zero    //! @[nodraw] parameter is given and the image was not in the cache,    //! it will not be rendered on the fly to get the correct data.