Allow setting cache duration for DownloadLink 
----------------------------------------------

                 Key: WICKET-4225
                 URL: https://issues.apache.org/jira/browse/WICKET-4225
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.5.3
            Reporter: Martin Grigorov
            Assignee: Martin Grigorov


Currently it is not possible to set the cache duration for the file resource of 
DownloadLink.

It would be good if 
org.apache.wicket.markup.html.link.DownloadLink.setCacheDuration(Duration) is 
added with the following behavior:
- if setCacheDuration(null) is used then use 
IResourceSettings#getDefaultCacheDuration() (this is the default, backward 
compatible)
- if setCacheDuration(Duration.NONE) is used then the file resource will not be 
cached by the browser
- if setCacheDuration(someDuration) is used then the file resource will be 
cached for that duration by the browser 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to