How can I improve performance by making the web-server deliver the static contents ?
Fairly easy to do. • Put the static contents in a physical directory. (Let’s call it “c:\foo\static-stuff”. On UNIX it may be “/foo/static-stuff”.) • Make a virtual directory out of “c:\foo\static-stuff” (or, under UNIX “/foo/static-stuff”) in you favorite web-server, and name it “static-foo”. • Reference the static contents in your Cocoon app by URIs starting with “/static-foo”, as in: “/static-foo/images/foo.gif” or “/static-foo/scripts/bar.js” The web-server will now handle the static contents, leaving Cocoon to take care of the dynamic stuff only, delivering optimal performance.