[Tickets #1140] javascripts can't be loaded periodically
bugs at bugs.horde.org
bugs at bugs.horde.org
Wed Jan 19 13:56:29 PST 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=1140
-----------------------------------------------------------------------
Ticket | 1140
Updated By | bennettm at mailsnare.net
Summary | javascripts can't be loaded periodically
Queue | Horde Base
Version | 3.0.2
State | Feedback
Priority | 1. Low
Type | Bug
Owners | Horde Developers
-----------------------------------------------------------------------
bennettm at mailsnare.net (2005-01-19 13:56) wrote:
The changes below seems to fix the problem as far as we can test. I can't
verify the original reporters problem, which was related to the Last-Modifed
header, but the issue we saw under Win98/IE6 seems to be related to the
missing Cache-control header. I think setting that to no-cache is the
desired behavior.
--- javascript.php 2005-01-19 21:45:01.000000000 +0000
+++ javascript.php 2005-01-19 21:45:17.000000000 +0000
@@ -29,9 +29,7 @@ if (!empty($app) && !empty($file) && str
* don't include base.php in this file. */
Horde::compressOutput();
- $mod_gmt = gmdate('D, d M Y H:i:s', filemtime($script_file)) .
' GMT';
- header('Last-Modified: ' . $mod_gmt);
- header('Cache-Control: public, max-age=86400');
+ header('Cache-Control: no-cache');
header('Content-Type: text/javascript');
}
More information about the bugs
mailing list