Here are a list of enhancements I think would make PerformanceFilter more newbie friendly:
#1 It would be nice to leave the PerformanceFilter in web.xml for development mode and do not need to change the web.xml file when deploying to production. However the Filter always caches, thus while editing 'css' and 'js' files we need to forcefully refresh the browser to ensure the cache is flushed.
So my suggestion is that if application mode is below 'profile', PerformanceFilter should not use caching.
#2 Currently Click adds a version to 'css', 'js' and image files. This might seem surprising for new user. I am worried this will confuse them, since performance won't be a worry in the early stages. I have been reading up on browser caching and it seems that the filename is used to cache the resource. If the contents of the file changes the browser won't reload. Only when the filename changes will it reload.
So the suggestion is to let the PageImports add the version info only in production/profile mode. In production modes the 'js', 'css' and images would have versions appended to them. Since these resources do not actually exist on the server, the PerformanceFilter must strip of the version info from the path and forward (using RequestDispatcher) these requests to their real locations.
I made a quick prototype of #2 to ensure it does in fact work.
If these suggestions are approved I can upload a patch if needed.
|Field||Original Value||New Value|
|Assignee||Malcolm Edgar [ medgar ]||Bob Schellink [ sabob ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Project Import||Fri Mar 20 14:11:32 PDT 2009 [ 1237583492744 ]|
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|5d 4h 35m||1||Malcolm Edgar||23/Jan/08 22:36|
|18d 6h 16m||1||Malcolm Edgar||11/Feb/08 04:52|