[cvs] commit: imp/config conf.xml imp/docs CHANGES imp/lib IMP.php
Michael M Slusarz
slusarz at horde.org
Mon May 5 23:33:16 UTC 2008
slusarz 2008-05-05 19:33:16 EDT
Modified files:
config conf.xml
docs CHANGES
lib IMP.php
Log:
Rework cached/compressed versions of CSS and JS files. Add additional way
of storing - via static files in local filesystem. These files can then be
directly accessed by the browser. Advantages:
1. Guaranteed that these files will always match the latest CSS/JS original
code. Browsers do not mark a cached file as expired if information is given
in URL parameters (at least it doesn't work reliably cross browser) so there
is no way to reliably indicate to a browser that the data has changed without
eliminating caching totally (which we want). The only way to do this is to
change the actual name of the file, which can only be done to static files.
This is the way that Yahoo, for example, handles the expire issue with
static info. See http://developer.yahoo.com/performance/rules.html#expires
2. Reduced load on server. Even though we don't do authentication on these
PHP cache accesses, we do have to build a minimal session (including loading
session data) to serve the file via Horde_Cache. Static files eliminate
that need.
Disadvantages:
1. Is not 100% automatic - the admin has to setup the necessary directory
on the server.
2. If using a FastCGI setup where php processes are located on a different
server from the HTTP servers, then NFS or equivalent will need to be setup
in order for the HTTP servers to be able to serve the generated output.
Also, remove mtime parameter - there is no reason we should ever not check
the modified time before serving the cached file.
The IMP config parameters have changed and won't work with the previous values
so be sure to update conf.php.
Revision Changes Path
1.124 +33 -22 imp/config/conf.xml
1.1119 +2 -0 imp/docs/CHANGES
1.677 +105 -36 imp/lib/IMP.php
Chora Links:
http://cvs.horde.org/diff.php/imp/config/conf.xml?r1=1.123&r2=1.124&ty=u
http://cvs.horde.org/diff.php/imp/docs/CHANGES?r1=1.1118&r2=1.1119&ty=u
http://cvs.horde.org/diff.php/imp/lib/IMP.php?r1=1.676&r2=1.677&ty=u
More information about the cvs
mailing list