I'm planning to do something similar. In my searches, I came across the following: http://blog.55minutes.com/2012/01/simplecdn-and-the-newly-released-fiftyfive-wicket-32/
I haven't tried it yet, but it seems like a solid idea. -Chris Snyder On Fri, Dec 13, 2013 at 9:26 AM, Arjun Dhar <dhar...@yahoo.com> wrote: > Hi, > I'm trying to make the use of CDN hassle free with my Wicket Apps. > .. where *IF* a CDN location is specified then all paths like > > > > .. become > > > > This applies to JS, CSS, and img tags mainly. > > Am wondering where the best place to automate this would be ? > 1. Build Process; do a REPLACE during production BUILD > 2. Wicket code that loads using IResourceStream UrlResourceStream(url) ; > Intercept the raw HTML stream and re-generate it? (if this is cached may be > efficient??) > 3. HttpServletFilter --> Just before its passed back from the Web Server. > Do > a RegEx scan and replace (Maybe too inefficient , but less intrusive to any > Wicket Vodoo) > > Thoughts? > > > > ----- > Software documentation is like sex: when it is good, it is very, very > good; and when it is bad, it is still better than nothing! > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Prefixing-CDN-URL-to-resources-base-path-tp4662997.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 > > -- Chris Snyder Web Developer, BioLogos biologos.org