Hi,

This way the default (global) cache settings are applied.
See org.apache.wicket.settings.IResourceSettings#getDefaultCacheDuration
You will need custom ResourceReference that uses custom IResource to set
specific cache settings just for it.
Hint: you can extend PackageResRef/PackageResource


On Thu, Jan 17, 2013 at 3:34 AM, Alec Swan <[email protected]> wrote:

> Hello,
>
> I am mounting a favicon using the following code in Application#init. How
> do I control Expires headers when this image is served?
>
> PackageResourceReference faviconReference = new
> PackageResourceReference(MyResourceScope.class, "images/myfavicon.png");
> mountResource("favicon.png", faviconReference);
>
> Thanks,
>
> Alec
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to