Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2002-05-03
2002-05-03 19:58:58 by Per Hedbor <ph@opera.com>
81470e7211561ed1aba77703e2997eb6e38e98c3 (
36
lines) (+
17
/-
19
)
[
Show
|
Annotate
]
Branch:
5.2
Some changes
Rev: server/protocols/http.pike:1.369
2:
// Modified by Francesco Chemolli to add throttling capabilities. // Copyright © 1996 - 2001, Roxen IS.
-
constant cvs_version = "$Id: http.pike,v 1.
368
2002/
04
/
19
14
:
30
:
14
stewa
Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
369
2002/
05
/
03
19:
58
:
58
per-bash
Exp $";
// #define REQUEST_DEBUG #define MAGIC_ERROR
1643:
if ( fstat[ST_MTIME] > misc->last_modified ) misc->last_modified = fstat[ST_MTIME];
-
if(
prot
!=
"HTTP/0.9"
&&
-
(
misc
->cacheable
>= INITIAL_CACHEABLE
)
)
-
{
+
if(
misc->cacheable
<
INITIAL_CACHEABLE )
+
heads["Expires"]
= Roxen.http_date
(
predef::time(1)+misc
->cacheable )
;
+
heads["Last-Modified"] = Roxen.http_date(misc->last_modified); if(since)
1670:
} } }
-
else // Dynamic content.
-
heads["Expires"] = Roxen.http_date( misc->last_modified );
-
}
+
if(prot != "HTTP/0.9") {