IBM 6.1.X manual Portlet Caching, ExpiresActive On, a. expiration-cache28800/expiration-cache

Models: 6.1.X

1 97
Download 97 pages 55.38 Kb
Page 38
Image 38
ExpiresActive On

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

3 3

W E BS P HE R E P O R T AL V 6 . 1 T U N I N G G U I D E

Page 38
Image 38
IBM 6.1.X Portlet Caching, ExpiresActive On, a. expiration-cache28800/expiration-cache, b. cache-scopepublic/cache-scope