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: expirePage 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.
for downloading: Library: expiretag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|