views:

7

answers:

0

Hi,

I am using Apache Webserver 2.x with mod_proxy and mod_proxy_balancer for load-balancing two Jboss servers. Everything is working fine except one weird problem. The application is using Flex as UI technology and it consists of various modules (separate SWF files for each module).

When I switch between modules, some of the modules are not getting loaded. If I will continue to switch sometimes it gets loaded. After carefully examining the access.log file of Apache server, we found that while serving SWF files sometime the http status code is generated as 304 (check following lines for reference)

172.X.X.X GET /MyApp/com/mycompany/a.swf 200 1298 (At this time the SWF is visible.)

172.X.X.X GET /MyApp/com/mycompany/a.swf 304 - (At this time the SWF is not visible.)

It seems there are some cache settings are creating problems while serving contents. I havent explicitly done any changes with respect to cache and using default settings of Jboss and Apache. Can someone tell me how to overcome this problem?