Support for CDN

156 views
Skip to first unread message

John-Daniel Trask

unread,
Jan 1, 2012, 11:31:57 PM1/1/12
to SquishIt
Hi,

We've been using SquishIT for sometime and it's great. I'm curious
however if it's easy enough to support rendering out the CSS/JS
reference to point to another domain name?

For example, we use MaxCDN and that points to our site as the origin
server, so I still want SquishIT to write to www.mysite.com/content/all_hash.css,
but I'd like the css reference in the html to go to
http://cdn.mysite.com/content/all_hash.css

Is this already supported (I've had a quick look through the source on
github but nothing stood out sorry!)

Thanks in advance,

John-Daniel Trask

John-Daniel Trask

unread,
Jan 2, 2012, 9:12:22 PM1/2/12
to SquishIt
Found that .WithOutputBaseHref() solves the problem :-)

On Jan 2, 5:31 pm, John-Daniel Trask <j...@mindscape.co.nz> wrote:
> Hi,
>
> We've been using SquishIT for sometime and it's great. I'm curious
> however if it's easy enough to support rendering out the CSS/JS
> reference to point to another domain name?
>
> For example, we use MaxCDN and that points to our site as the origin
> server, so I still want SquishIT to write towww.mysite.com/content/all_hash.css,
> but I'd like the css reference in the html to go tohttp://cdn.mysite.com/content/all_hash.css

Justin Etheredge

unread,
Jan 2, 2012, 10:02:52 PM1/2/12
to squi...@googlegroups.com
Awesome, glad you figured it out! Sorry for not replying sooner.
Reply all
Reply to author
Forward
0 new messages