beautypg.com

Portlet caching – IBM WEBSPHERE 6.1.X User Manual

Page 38

background image

3 3

W E B S P H E R E P O R T A L V 6 . 1 T U N I N G G U I D E

# 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.

28800

b.

public