Apache2.2 weblogic 9.2 http plugin

We have developed a web application with JSF as well as used myfaces ajax.

It is deployed in weblogic 9.2.3.0 and apache2.2 is used as a web server infront of weblogic to route all request using weblogic http plugin configured in apache.

The ajax web resource (like js, images, css) is pre-configured to be expired on daily basis and next day IE will download the resource again. When the request goes, few myfaces resource are taking long time to respond.

We couldnt able to figure out the issue? which one is taking time whether apache or weblogic. or any problem with weblogic plugin.

Can you pls help us in solving this issue.

1 comment
Comment actions Permalink

You can use Apache mod_expires module and ExpiresActive directive to reset the expiration date.

See the following:
http://httpd.apache.org/docs/2.0/mod/mod_expires.html


Make sure mod_expires module is loaded and add relevant settings to httpd.conf. For example, to set one day as the expiration date:

ExpiresActive On
ExpiresByType image/gif A86400

ExpiresByType image/jpg A86400

ExpiresByType image/png A86400

ExpiresByType text/css A86400

ExpiresByType text/javascript A86400

ExpiresByType application/javascript A86400

ExpiresByType application/x-shockwave-flash A86400

ExpiresByType application/octet-stream A86400

ExpiresByType image/xml A86400


Of course, you should also set up caching, for this load mod_cache and related modules and apply the settings, for example:
CacheEnable disk /
CacheRoot <your cache folder>
CacheDirLevels 5
CacheDirLength 2

The user under which you run the Apache HTTP server should owner of CacheRoot folder.

See the following:
http://httpd.apache.org/docs/2.2/caching.html

0

Please sign in to leave a comment.