add extension point to configure resource cache expiration time
---------------------------------------------------------------
Key: WICKET-963
URL: https://issues.apache.org/jira/browse/WICKET-963
Project: Wicket
Issue Type: Improvement
Components: wicket
Reporter: Ryan Sonnek
Priority: Minor
The current implementation of WebResource hardcodes the expiration time of
cachable files to be 1 hour. There should be an extension point added to
WebResource to allow for customizing this duration *without* needing to
override the entire configureResponse() method.
http://wicket.sourceforge.net/apidocs/wicket/markup/html/WebResource.html
for example, add this to WebResource:
/**
* default implementation is to cache resources for 1 hour. can be overridden
by extension classes.
*/
protected int getCacheDuration() {
return 3600;
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.