Always set a 24 hour expires period on images, even though this means editors will...
authorrich <rich>
Thu, 28 Oct 2004 14:51:03 +0000 (14:51 +0000)
committerrich <rich>
Thu, 28 Oct 2004 14:51:03 +0000 (14:51 +0000)
scripts/image.ml

index 0558950..90d0a5a 100644 (file)
@@ -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.
- * $Id: image.ml,v 1.11 2004/10/24 11:34:37 rich Exp $
+ * $Id: image.ml,v 1.12 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
@@ -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"