git.annexia.org
/
cocanwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
376b03d
)
Always set a 24 hour expires period on images, even though this means editors will...
author
rich
<rich>
Thu, 28 Oct 2004 14:51:03 +0000
(14:51 +0000)
committer
rich
<rich>
Thu, 28 Oct 2004 14:51:03 +0000
(14:51 +0000)
scripts/image.ml
patch
|
blob
|
history
diff --git
a/scripts/image.ml
b/scripts/image.ml
index
0558950
..
90d0a5a
100644
(file)
--- a/
scripts/image.ml
+++ b/
scripts/image.ml
@@
-1,7
+1,7
@@
(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: image.ml,v 1.1
1 2004/10/24 11:34:37
rich Exp $
+ * $Id: image.ml,v 1.1
2 2004/10/28 14:51:03
rich Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-74,9
+74,8
@@
let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
)
);
)
);
- if version <> None then
- (* Set a medium-length expiry time on this resource. *)
- Table.set (Request.headers_out r) "Expires" (Expires.medium ());
+ (* Set a medium-length expiry time on this resource. *)
+ Table.set (Request.headers_out r) "Expires" (Expires.medium ());
(* Content-length header. *)
Table.set (Request.headers_out r) "Content-Length"
(* Content-length header. *)
Table.set (Request.headers_out r) "Content-Length"