[kronolith] Re: performance hit caused by dynamic javascript?

Tom Cooper tcooper at quarterend.com
Wed Jan 15 11:51:17 PST 2003


Thanks for the help,

Do the parameters in  RELENG_2 horde/javascript.php line 19, need to be 
reversed - strstr(haystack,needle).

$send_headers = strstr($_SERVER['PHP_SELF'],'javascript.php');

I have updated horde/javascript.php to cvs head.
I'm still having cache problems with goto.js. I am NOT having cache 
problems with css.php(must have been pilot error).  I am reading up on 
the http headers.

Results of http head requests are as follows:
(Note: my previous lynx command line was wrong--need single quotes 
around url.)

lynx --head 'http://k2/horde/javascript.php?file=goto.inc&app=kronolith'
----------------------------
HTTP/1.1 200 OK
Date: Wed, 15 Jan 2003 19:41:50 GMT
Server: Apache/1.3.23 (Unix)  (Red-Hat/Linux) PHP/4.2.3 mod_throttle/3.1.2
X-Powered-By: PHP/4.2.3
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public, max-age=86400
Pragma: no-cache
Last-Modified: Mon, 02 Sep 2002 19:23:58 GMT
Connection: close
Content-Type: text/javascript

lynx --head 'http://192.168.0.28//horde/css.php?theme=&app=kronolith'
----------------------------
HTTP/1.1 200 OK
Date: Wed, 15 Jan 2003 19:29:00 GMT
Server: Apache/1.3.23 (Unix)  (Red-Hat/Linux) PHP/4.2.3 mod_throttle/3.1.2
X-Powered-By: PHP/4.2.3
Last-Modified: Wed, 27 Nov 2002 20:02:12 GMT
Cache-Control: public, max-age=86400
Connection: close
Content-Type: text/css

lynx --head http://k2/horde/kronolith/templates/javascript/goto.js
-------------------------------
HTTP/1.1 200 OK
Date: Wed, 15 Jan 2003 19:30:33 GMT
Server: Apache/1.3.23 (Unix)  (Red-Hat/Linux) PHP/4.2.3 mod_throttle/3.1.2
Last-Modified: Tue, 14 Jan 2003 22:24:37 GMT
ETag: "46b1-2052-3e248e25"
Accept-Ranges: bytes
Content-Length: 8274
Connection: close
Content-Type: application/x-javascript

The last url is the static javascript file I created.

side note: I really like CHORA. Very nice cvs app.
--Tom




More information about the kronolith mailing list