6.0.0-alpha14
7/3/25

[#1140] javascripts can't be loaded periodically
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

History
02/03/2005 06:58:22 AM ryan (at) postkazzen (dot) dk Comment #13 Reply to this comment
Just to mention, this also fixed a problem with Fixefox.



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.
01/20/2005 03:12:30 PM vilius (at) lnk (dot) lt Comment #12 Reply to this comment
No-cache patch fixed the problem. Thanks.





P.S. Sorry for the dublicate bug report Chuck. Just never saw that 
amount of errors and I posted about it too fast.
01/20/2005 03:11:28 PM Chuck Hagenbuch Comment #11
State ⇒ Resolved
Reply to this comment
The no-cache header is now the only caching header we send here. Fix 
will be in Horde 3.0.3. Resolving.
01/19/2005 09:56:29 PM bennettm (at) mailsnare (dot) net Comment #10 Reply to this comment
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');

          }
01/19/2005 06:31:12 PM Chuck Hagenbuch State ⇒ Feedback
 
01/19/2005 06:30:57 PM Chuck Hagenbuch Comment #9 Reply to this comment
I can't, but I don't have access to Win98. But I'm confused; the 
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/
01/19/2005 03:47:22 AM bennettm (at) mailsnare (dot) net Comment #8 Reply to this comment
Sorry, forgot to mention it was IE 6 under Win98.
01/19/2005 03:44:43 AM bennettm (at) mailsnare (dot) net Comment #7 Reply to this comment
We discovered one anomaly when tried this patch: IE under Win98 fails 
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?
01/15/2005 04:50:32 PM Chuck Hagenbuch Comment #6 Reply to this comment
Okay. Please test this patch and let me know if I should merge it:



http://cvs.horde.org/diff.php/horde/services/javascript.php?r1=1.38&r2=1.39&ty=u
01/15/2005 03:55:07 PM Jan Schneider Comment #5 Reply to this comment
I think it never worked anyway, at least the files get loaded on 
*every* page call here.
01/15/2005 05:20:33 AM Chuck Hagenbuch Comment #4 Reply to this comment
Do we want javascript that runs through services/javascript.php (and 
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...
01/15/2005 01:13:26 AM Jan Schneider Priority ⇒ 1. Low
 
01/15/2005 01:13:06 AM Jan Schneider Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
01/13/2005 01:56:54 PM mcsi (at) mcsi (dot) pp (dot) ru Comment #3 Reply to this comment
The problem turns out to be in If-Modified-Since HTTP header. This is 
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.
01/13/2005 10:00:31 AM Jan Schneider Comment #2
Summary ⇒ javascripts can't be loaded periodically
State ⇒ Feedback
Reply to this comment
Never heard of this before, and there isn't much we can do about this. 
Find out why your server returns a 500 and we might be able to 
workaround this.
01/13/2005 08:19:15 AM mcsi (at) mcsi (dot) pp (dot) ru Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ javascripts cant be loaded periodically
Queue ⇒ Horde Base
State ⇒ Unconfirmed
Reply to this comment
Hello.



   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"


Saved Queries