From: rich Date: Thu, 28 Oct 2004 14:51:03 +0000 (+0000) Subject: Always set a 24 hour expires period on images, even though this means editors will... X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=a91aac39ca718af3ad1f446742c3d200da60f4b6;p=cocanwiki.git Always set a 24 hour expires period on images, even though this means editors will need to hit [Reload] a bit more often. --- diff --git a/scripts/image.ml b/scripts/image.ml index 0558950..90d0a5a 100644 --- 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 . * 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"