Thanks Chris .. I evaluated that.
Didnt work @ first shotand on further review I dont feel that is very
effective; specially for JavaScript related code or dynamic CMS injected
code.

The approach that has been fastest and most effective for me has been to do
the Heavy Lifting @ packaging time:


Where the token map File look like this:
# For JavaScript files to simple set the ROOT SITE_CDN variable. Not trying
to alter other JavaScripts references that that may get really complex.
# Simply devfine a SITE_CDN var, and prefix to any JavaScript code
SITE_CDN( )*\=( )*''=SITE_CDN='//xyz.cloudfront.net/'
SITE_CDN( )*\=( )*""=SITE_CDN="//xyz.cloudfront.net/"

# Replace all SRC location with CDN prefix in MARKUPS
src( )*\=( )*'=src='//xyz.cloudfront.net/
src( )*\=( )*"=src="//xyz.cloudfront.net/

...One can modify the RegEx's to suit their convenience / custom cases/





-----
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-tp4662997p4663019.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

Reply via email to