WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Replaced URL's not always working with CDN (MaxCDN) (4 posts)

  1. rbredow
    Member
    Posted 2 years ago #

    Let me start with: I'm really impressed with this plugin and the community and author support I see here. Thanks so much for the great work--not an easy job.

    I just started trying to use MaxCDN to cache my static files today. I'm using it with 3 blogs. On two sites, the URL substitution appears to be broken--it looks like it's dropping off everything but the MaxCDN "replaces site hostname" for many of the image URL's. All sites are running the latest version of WordPress and the plugin

    Here is an example page that I've made up that has both relative and absolute full URL's in place for testing. In this case the full URL works, but none of the relative URL's do.

    You can see this page (with debug on for CDN) here at least for the time being: http://www.185vfx.com/2012/01/dinner-tim/

    Here is the debug from the bottom of that page so you can see the broken substitutions:

    Replaced URLs:
    /images/2012/01/dinner-time-800x533.jpg => http://static.185vfx.com/
    /images/2012/01/dinner-time.jpg => http://static.185vfx.com/
    /images/2012/01/dinner-time-480x320.jpg => http://static.185vfx.com/
    http://www.185vfx.com/wp-includes/css/admin-bar.css => http://static.185vfx.com/wp-includes/css/admin-bar.css
    http://www.185vfx.com/wp-includes/js/admin-bar.js => http://static.185vfx.com/wp-includes/js/admin-bar.js
    http://www.185vfx.com/wp-content/themes/autofocus-rob/style.css => http://static.185vfx.com/wp-content/themes/autofocus-rob/style.css
    http://www.185vfx.com/wp-content/plugins/picasa-album-uploader/picasa-album-uploader.css => http://static.185vfx.com/wp-content/plugins/picasa-album-uploader/picasa-album-uploader.css
    http://www.185vfx.com/wp-content/plugins/dd-formmailer/dd-formmailer.css => http://static.185vfx.com/wp-content/plugins/dd-formmailer/dd-formmailer.css
    http://www.185vfx.com/wp-content/plugins/dd-formmailer/date_chooser.js => http://static.185vfx.com/wp-content/plugins/dd-formmailer/date_chooser.js
    http://www.185vfx.com/images => http://static.185vfx.com/images

    I setup a 3rd fresh wordpress site for testing and although it has fewer images, it appears to be working exactly as expected. I'm not sure if it's related to the quantity of images or something else in the HTML that might be throwing off a regex expression.

    I'm open to any input and hopefully can provide useful debugging info. I've also submitted a support ticket to the plugin author just in case that helps.

    Thanks

    Rob

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    If you disable all other plugins does the plugin replace more URLs?

  3. rbredow
    Member
    Posted 2 years ago #

    Thanks for following up.

    With all plugins disabled (except for akismet) the behavior is the same. All image URL's are being changed, some are just being completely "wiped out" by the target domain instead of the target domain + path_to_image.

    Just to avoid any duplicate work on your part, this is the same issue I've documented in your support system as #201204062333.

    Thanks again--

    Rob

  4. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    Addressed offline; the bug is fixed in the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic