Class FilenameWithVersionResourceCachingStrategy

java.lang.Object
org.apache.wicket.request.resource.caching.FilenameWithVersionResourceCachingStrategy
All Implemented Interfaces:
IResourceCachingStrategy

resource caching strategy that adds a version for the requested resource to the filename.

versioned_filename := [basename][version-prefix][version](.extension)

the version must not contain the version-prefix so please use an unambiguous value for the version-prefix. The default version-prefix is "-ver-".

Since browsers and proxies use the versioned filename of the resource as a cache key a change to the version will also change the filename and cause a reliable cache miss. This enables us to set the caching duration of the resource to a maximum and get best network performance.

Since:
1.5
Author:
Peter Ertl