[
https://issues.apache.org/jira/browse/WICKET-5441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-5441.
-------------------------------------
Resolution: Fixed
Fix Version/s: 7.0.0
6.13.0
Thanks!
I've applied your patch with a minor change - if the calculated version is not
null then make the check and set the caching headers.
> IResourceCachingStrategy implementations should only set caching if version
> matches
> -----------------------------------------------------------------------------------
>
> Key: WICKET-5441
> URL: https://issues.apache.org/jira/browse/WICKET-5441
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 6.12.0, 7.0.0
> Reporter: Stefan Fussenegger
> Assignee: Martin Grigorov
> Fix For: 6.13.0, 7.0.0
>
>
> Implementations of IResourceCachingStrategy
> (FilenameWithVersionResourceCachingStrategy and
> QueryStringWithVersionResourceCachingStrategy) should only set cache duration
> to maximum if the version matches. Currently, if a user requests a resource
> with an arbitrary version, the version will be cached for one year
> (WebResponse.MAX_CACHE_DURATION). So people could polute proxy caches with
> potentially upcoming version.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)