33
WEBSPHERE PORTAL V6.1 TUNING GUIDE
# expire images after a month in the client's cache. Note that one month expiration
worked fine for a performance evaluation in a test lab. It should be set appropriately
for your environment where images might be updated more frequently than once a
month.
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
ExpiresByType application/x-javascript "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
ExpiresByType application/xml "access plus 1 week"
ExpiresByType application/vnd.mozilla.xul+xml "access plus 1 week"
ExpiresByType application/x-www-form-urlencoded "access plus 1 week"
ExpiresByType text/html "access plus 1 week"
ExpiresByType text/xml "access plus 1 week"
Portlet Caching
portlet.xml is part of a portlet’s war file. It is located in the portlet’s WEB-INF directory. To
make portlet fragments publicly cacheable set:
a. <expiration-cache>28800</expiration-cache>
b. <cache-scope>public</cache-scope>