Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author launchinteractive

    (@launchinteractive)

    Hi Alex,

    I haven’t thought too much about CDN support.

    I think we could possibly trigger a background task that copies a minified file to a CDN once its been compressed. We would then need to store a flag once it has copied across successfully. If that flag is set then we would use that version in the page.

    I’m not sure what CDN’s to support. I’ve used Amazon, CacheFly and Edgecast before.. but there are so many others. Would you have a preference?

    Thread Starter nashtu3000

    (@nashtu3000)

    I think that you only have to support a rewrite of the css and js files because of how most cdns work. They only pull from the original url when a request is being made.

    So if you code in this functionality, 90%+ of the cdns will be supported. Do you agree?

    Plugin Author launchinteractive

    (@launchinteractive)

    Ahh yeah, your right… and thinking about it 1.6.9 should work as it is, without any changes.

    All you would need to do is set MMR_CACHE_DIR & MMR_CACHE_URL constants in wp-config.php – I haven’t tested it but setting MMR_CACHE_URL to the CDN url should work shouldn’t it?

    Thread Starter nashtu3000

    (@nashtu3000)

    I’ll test and get back to you on this one. But can’t you make a cdn url for js and a different one for css? That should support multiple parallel downloads and speed up loading of a page.

    Plugin Author launchinteractive

    (@launchinteractive)

    Yeah, I guess we could. If this works I’ll modify the plugin so you can specify seperate URLs for JS and CSS.

    Thread Starter nashtu3000

    (@nashtu3000)

    It’s working, you can see it live on https://mkor.ro/

    When do you plan on making a separate url feature for JS and CSS?

    One more question, how can i specify the order in which the css files are loaded? I’ve excluded some css files from minification and i’m seeing a lot of css files added because of their order.

    Plugin Author launchinteractive

    (@launchinteractive)

    Awesome. I’m glad it works for you.

    I’ve just pushed a new version which adds support for seperate URLs.
    Please use MMR_JS_CACHE_URL & MMR_CSS_CACHE_URL to do this.

    I’ll reply to your other question in your other thread.

    Thread Starter nashtu3000

    (@nashtu3000)

    Wonderful, you can close this ticket now. Great support!!!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Rewrite URL for CDN?’ is closed to new replies.