How To Deploy Statics On Apache While Keep Dynamics On Jetty6?

We’re fine-tuning the performance of our web application. We’re trying to separate the client-side parts and server-side parts of SmartClient onto 2 different web server farms. The server-side parts, such as IDACall and Realtime Messaging, should reside on the Jetty6 server farm, while the client-side parts, such as SmartClient skin resources and gzip JS and XMLs, should reside on the Apache server farm.

We notice the following comment in the web.xml:

<!-- Use FileDownload servlet to download all static content that’s part of the skin, such as image files, so we can set Expires headers and other cache control directives. In a production deployment, you’d want to use a webserver such as Apache to do this. –>

How we can achieve that in our scenario? Please kindly advise ASAP. Thanks.

Use mod_expires. For the SmartClient .js files in particular, which are delivered compressed, we recommend you continue to serve them from Jetty. Compression is theoretically possible to set up with Apache but very difficult (note: there are many exaggerated claims of success on the web, which work only with certain browsers or under certain circumstances). If Jetty serves the files, it will typically only serve them once ever per user (until you update to a new SmartClient version).