Expire page tag ver. 1.4

    Custom JSP tag expirePage lets you define Expires and Cache-Control headers in your response with expiration date for the generated page. So it is yet another way to cache some data (or disable cache) on the client side.

For example:

<%@ taglib uri="taglib.tld" prefix="p" %>

<!-- cache page for 5 min -->
 <p:expirePage min="5"/>

Expiration date will be calculated as a current time plus the value (in minutes) defined in parameter min. You can use a negative value for cache disabling.

Tags are:


Tag defines a date of expiration for your page (header fields Expires and Cache-Control). Date of expiration will be calculated as a current time plus (or minus) an offset in minutes. Parameters are:

1) min Describes an offset in minutes.
2) cond Optional attribute. Describes a boolean value tag's execution depends on. Default value is true (set expire header).

for downloading:

Library: expiretag.jar    Description: taglib.tld

© Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: