• So I have a separate server at domainCDN.com and I have the following subdomains pointing to the web root. css.domainCDN.com, script.domainCDN.com and files.domainCDN.com.

    I created domainCDN.com/sitename/ or (public_html/sitename) as document root. This means that css.domainCDN.com/sitename/ script.domainCDN.com/sitename and files.domainCDN.com/sitename/ all resolve to the same directory.

    I have minified several css files in my installation and I have a cdn CNAME set to direct the css files to css.domainCDN.com/sitename. The problem is is that the uploaded minified css file is using css.domainCDN.com/wp-content… in the url(…) images in the css. It is trimming the /sitename part of the css.domainCDN.com/sitename given in the css CNAME. Is this a bug or something I am doing wrong.

    Using latest version (3.1) of WP and latest version of W3 Total Cache.

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m not sure what the objective is here?

    Thread Starter jroakes

    (@jroakes)

    I was following the lead of mashable.com in that they have the various resources coming from http://9.mshcdn.com, http://8.mshcdn.com, http://7.mshcdn.com, etc. We do a lot more diverse sites than Mashable so I thought that if I segmented the types of files on each site (css, files, images, scripts) and created a “key” directory on each subdomain (i.e. css.domainCDN.com/sitename/ script.domainCDN.com/sitename and files.domainCDN.com/sitename/) that matched up to the site name then we could use your plugin (which rocks btw) to load the the resources in parallel to each site from our servers. These are currently on 1 server and the thought is that as we grow our wp sites these individual subdomains could move out to their own server if needed.
    We are trying out VPS.net as well and might just use them but we like the thought of managing our own files.

    The different sub domains that mashable employees are typically linked to different CDN’s (Content Delivery Networks). The fact you are using one server to load different resources means you only really need one domain (without sub domains). It sounds to me like you are overcomplicating this.

    However, if you are looking for a speed performance boost then you are heading down the right path. The W3 Total Cache plugin will offload your resources onto a CDN like Amazon S3 so your site loads faster. Amazon S3 is also typically a more cost effective solution than running your own network of servers to serve static content.

    /mytwocents

    @jroakes, that’s not at all what mashable is up to. It’s just a simple parallelism optimization for browsers.

    Thread Starter jroakes

    (@jroakes)

    I got it. Was just learning then. I was way overtthinking things. Thanks for the update and the great plugin.

    You’re welcome.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: W3 Total Cache] Minified CSS and CDN’ is closed to new replies.