W3 Total Cache
W3 Total cache CSS embedded URL rewriting for CDN (2 posts)

  1. pbelzile
    Posted 3 years ago #

    I've enabled W3 Total Cache for my site with AWS CDN. I'm minifying several CSS files and noticed that the CSS properties with url information for loading images are not rewritten to fetch the images from the CDN.

    Some of my CSS properties also included relative urls. Combining those CSS files broke the reference because the result minified CSS is not at the same path depth. I had to take them out. The CDN serves them so not a great loss.

    Any suggestion? Am I missing a setting? (I checked the code and there appears to be a "postprocessing" step that can be applied to the minify... Perhaps that can be use to at least fix the embedded absolute references.)


  2. Frederick Townes
    Plugin Author

    Posted 3 years ago #

    It depends on the paths that are in the file, if they aren't for your domain name or if the path "doesn't make sense" to W3TC it won't rewrite them. I'd need you to submit a bug submission form from the support tab of the plugin to investigate.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic