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 - 2004, 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.1023 2009/02/11 08:47:52 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1024 2009/02/19 16:27:10 jonasw Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:3945:    error("Draw callback %O did not generate any data.\n"    "na: %O\n"    "id: %O\n",    draw_function, na, id);    }    }    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 setting a -  // separate flag. +  // sessions.    RAISE_CACHE(INITIAL_CACHEABLE); - #ifndef ENABLE_NEW_ARGCACHE -  NO_PROTO_CACHE(); - #endif +  +  // With the new (5.0 and newer) arg-cache enabled by default we can +  // allow authenticated images in the protocol cache. At this point +  // http.pike will have cleared it so re-enable explicitly. +  PROTO_CACHE(); +     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.