Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I improve performance by making the web-server deliver the static contents ?

0
Posted

How can I improve performance by making the web-server deliver the static contents ?

0

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.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123