Roxen.git / server / protocols / http.pike

version» Context lines:

Roxen.git/server/protocols/http.pike:2774: Inside #if defined(HTTP_COMPRESSION)
   // handled directly by the protocol cache.    if(!misc->vary)    misc->vary = (< "accept-encoding" >);    else    misc->vary["accept-encoding"] = 1;    }   #endif       mapping(string:string) heads = make_response_headers (file);    +  if (heads["Set-Cookie"]) { +  // Never protocol cache setting of cookies. +  NO_PROTO_CACHE(); +  } +     // Notes about the variant headers:    //    // Date Changes with every request.    // Content-Type May change if a byte-range request is performed.    // Content-Length May change due to If-* headers, etc.    // Connection Depends on the protocol version and state.    // Expires Might need to modify this for HTTP/1.0 clients.    // Cache-Control Might need to modify this when sending stale responses.    mapping(string:string) variant_heads = ([ "Date":"",    "Content-Type":"",