You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Ryan Sonnek (JIRA)" <ji...@apache.org> on 2007/09/12 21:52:32 UTC
[jira] Created: (WICKET-963) add extension point to configure
resource cache expiration time
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.
[jira] Closed: (WICKET-963) add extension point to configure
resource cache expiration time
Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Johan Compagner closed WICKET-963.
----------------------------------
Resolution: Fixed
Assignee: Johan Compagner
added the method to WebResource
> 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
> Assignee: Johan Compagner
> Priority: Minor
> Fix For: 1.3.0-beta5
>
>
> 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.