Dear All, I'm currently experiencing some problems using SimpleCDN in Wicket 1.5.4 in combination with mountResource for image/texttemplate/css resources. When used, the according resources are then no longer resolved via CDN but served from the origin host as relative paths.
Works: -- Inside WebPage constructor add(new Image("Logo",new PackageResourceReference(ResourcesImagesScope.class, "images/logo.png"))); -- Markup -- Result <https://abc123.cloudfront.net/wicket/resource/com.my.package.resources.images.ResourcesImagesScope/logo-ver-1340006161412.png> Does not work: -- Inside WebPage constructor add(new Image("Logo",new PackageResourceReference(ResourcesImagesScope.class, "images/logo.png"))); -- Inside init() of extended WebApplication (for a nice url-path) mountResource("images/images/logo.png", new PackageResourceReference(ResourcesImagesScope.class, "images/logo.png")); -- Result </images/logo-ver-1349261626000.png> (--> https://www.mydomain.com/images/logo-ver-1349261626000.png) So as you can see, as soon as I remove the mountResource the image is resolved correctly. Also when I set a break point insides SimpleUrl mapUrl function, the resource never shows up if mountResource has been called for it bevore. Any ideas on why mountResource is causing this impact? Thanks, Cheers, David ----- “In the middle of difficulty lies opportunity.” Albert Einstein -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Configurable-Resource-s-url-use-CDN-or-not-tp3899388p4652638.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org