[ 
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.

Reply via email to