Summary | javascripts can't be loaded periodically |
Queue | Horde Base |
Queue Version | 3.0.2 |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | Horde Developers (at) |
Requester | mcsi (at) mcsi (dot) pp (dot) ru |
Created | 01/13/2005 (7476 days ago) |
Due | |
Updated | 02/03/2005 (7455 days ago) |
Assigned | 01/19/2005 (7470 days ago) |
Resolved | 01/20/2005 (7469 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
It did not always load the menu. But a refresh made it load. But after
aplying the patch it works fine for me in both Firefox and IE.
P.S. Sorry for the dublicate bug report Chuck. Just never saw that
amount of errors and I posted about it too fast.
State ⇒ Resolved
will be in Horde 3.0.3. Resolving.
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');
}
original code didn't work for the original reporter. But it does for
you. So which is it? Can you come up with something that works for both/
to load the left-hand sidebar and reports that the Horde_Tree function
is undefined on line 509. Backing out the changes seems to fix
everything. Can anyone else confirm that behavior?
http://cvs.horde.org/diff.php/horde/services/javascript.php?r1=1.38&r2=1.39&ty=u
*every* page call here.
by definition requires php code, therefore) to be cached at all
anymore? Anything static should be static JS, and there might be other
problems caused by caching this page...
State ⇒ Assigned
always-failing request made by IE:
GET /horde/services/javascript.php?file=open_compose_win.js&app=imp HTTP/1.1
Accept: */*
Accept-Language: ru
Accept-Encoding: gzip, deflate
If-Modified-Since: Thu, 02 Dec 2004 16:27:54 GMT; length=1288
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Host: users.portpc-design.spb.ru
Connection: Keep-Alive
Cookie: Horde=8e8aa91017dc9ae1af4442dce7a2d3c0
If I skip If-Modified-Since header, evrything works fine. After
deleting IE cache, scripts loads fine. After refresh it gets 500 error.
When I commented out
header('Last-Modified: ' . $mod_gmt);
from javascript.php everything started to work just fine.
Summary ⇒ javascripts can't be loaded periodically
State ⇒ Feedback
Find out why your server returns a 500 and we might be able to
workaround this.
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ javascripts cant be loaded periodically
Queue ⇒ Horde Base
State ⇒ Unconfirmed
Here are the records from the httpd access log. I'm using horde
3.0.2. I cant compose new mail in imp, because javascript cant be
loaded. Strangest thing is when using IE they cant be loaded at all,
giving 500 error. Using Mozilla, they could be loaded periodically.
The server and apache are working just fine for everything else, so
I dont suspect them failing. Also, I'm using suphp and php5.
Also, there are no useful information neither in the horde log
(DEBUG) nor in the suphp or httpd-error logs. That's very strange too.
195.128.162.78 - - [13/Jan/2005:11:09:42 +0300] "GET
/horde/services/javascript.php?file=open_compose_win.js&app=imp
HTTP/1.0" 500 673 "-" "M
ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
195.128.162.78 - - [13/Jan/2005:11:09:44 +0300] "GET
/horde/services/javascript.php?file=open_compose_win.js&app=imp
HTTP/1.0" 500 673 "-" "M
ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
195.128.162.78 - - [13/Jan/2005:11:09:45 +0300] "GET
/horde/services/javascript.php?file=open_compose_win.js&app=imp
HTTP/1.0" 500 673 "-" "M
ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
195.128.162.78 - - [13/Jan/2005:11:09:46 +0300] "GET
/horde/services/javascript.php?file=open_compose_win.js&app=imp
HTTP/1.0" 500 673 "-" "M
ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
195.128.162.78 - - [13/Jan/2005:11:09:47 +0300] "GET
/horde/services/javascript.php?file=open_compose_win.js&app=imp
HTTP/1.0" 500 673 "-" "M
ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
195.128.162.78 - - [13/Jan/2005:11:09:48 +0300] "GET
/horde/services/javascript.php?file=open_compose_win.js&app=imp
HTTP/1.0" 500 673 "-" "M
ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
195.128.162.78 - - [13/Jan/2005:11:09:49 +0300] "GET
/horde/services/javascript.php?file=open_compose_win.js&app=imp
HTTP/1.0" 500 673 "-" "M
ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
195.128.162.78 - - [13/Jan/2005:11:09:50 +0300] "GET
/horde/services/javascript.php?file=open_compose_win.js&app=imp
HTTP/1.0" 500 673 "-" "M
ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
195.128.162.78 - - [13/Jan/2005:11:10:07 +0300] "GET
/horde/services/portal/sidebar.php?httpclient=1 HTTP/1.0" 200 24380
"-" "Mozilla/5.0 (Wi
ndows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707"
195.128.162.78 - - [13/Jan/2005:11:10:33 +0300] "GET
/horde/services/javascript.php?file=open_compose_win.js&app=imp
HTTP/1.0" 500 673 "-" "M
ozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707"
195.128.162.78 - - [13/Jan/2005:11:10:35 +0300] "GET
/horde/services/javascript.php?file=open_compose_win.js&app=imp
HTTP/1.0" 200 1288 "-" "
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707"
195.128.162.78 - - [13/Jan/2005:11:10:36 +0300] "GET
/horde/services/javascript.php?file=open_compose_win.js&app=imp
HTTP/1.0" 200 1288 "-" "
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707"
195.128.162.78 - - [13/Jan/2005:11:10:37 +0300] "GET
/horde/services/javascript.php?file=open_compose_win.js&app=imp
HTTP/1.0" 200 1288 "-" "
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707"