Branch: Tag:

2002-11-01

2002-11-01 10:48:16 by Anders Johansson <anders@roxen.com>

Set expire time to 1970 if misc->cacheable is 0. This avoids problem with immediate expiration and clock skew between server and client for borwsers using HTTP/1.0.

Rev: server/protocols/http.pike:1.382

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2001, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.381 2002/10/30 17:20:17 jonasw Exp $"; + constant cvs_version = "$Id: http.pike,v 1.382 2002/11/01 10:48:16 anders Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
1588:    }       if( misc->cacheable < INITIAL_CACHEABLE ) { +  if (misc->cacheable == 0) +  heads["Expires"] = Roxen.http_date( 0 ); +  else    heads["Expires"] = Roxen.http_date( predef::time(1)+misc->cacheable );       if (!misc->cacheable && !misc->last_modified) {