Thanks for your help Dan. I made all images, css and js wicket resource references now. This helps a lot because I also want to prefix my website urls with the locale code which is pretty hard to do when some paths are context-relative and others are managed by Wicket.

For anyone attempting this change, note that versioned resources can be both accessed through the versioned name (with -ver-xxxx) added and the original file name too. This can help for referencing images with relative paths in css.

Regards,
Bertrand

On 28/03/2013 11:39 AM, Dan Retzlaff wrote:
On Thu, Mar 28, 2013 at 7:27 AM, Pointbreak
<[email protected]>wrote:

I don't think there's anything wrong with serving resources from the
webapp-folder,

I agree, it can work well for some use cases. But if you want better
control over caching, and the ability point all rendered resource
references to a CDN with a little configuration code, then maybe serving
through Wicket gives you more options.

Dan



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to