• Resolved dvandal

    (@dvandal)


    Hi,

    Upgrading to the lastest version of W3 Total Cache has broken my CDN configuration.

    Here is a sample of the HTML source code with CDN + Generic Mirror enabled:

    <!DOCTYPE html>
    <html lang=https://cdn.quoifaireenfamille.com/"https://cdn.quoifaireenfamille.com/fr-FR"https://cdn.quoifaireenfamille.com/prefix="https://cdn.quoifaireenfamille.com/og: https://ogp.me/ns# fb: https://ogp.me/ns/fb#"https://cdn.quoifaireenfamille.com/>
    	<head>
    		<meta charset=https://cdn.quoifaireenfamille.com/"https://cdn.quoifaireenfamille.com/UTF-8"https://cdn.quoifaireenfamille.com/>
    		<meta name=https://cdn.quoifaireenfamille.com/"https://cdn.quoifaireenfamille.com/viewport"https://cdn.quoifaireenfamille.com/content="https://cdn.quoifaireenfamille.com/width=device-width, initial-scale=https://cdn.quoifaireenfamille.com/1.0"https://cdn.quoifaireenfamille.com/>
    		<link rel=https://cdn.quoifaireenfamille.com/"https://cdn.quoifaireenfamille.com/pingback"https://cdn.quoifaireenfamille.com/href="https://cdn.quoifaireenfamille.com/https://quoifaireenfamille.com/xmlrpc.php"https://cdn.quoifaireenfamille.com/>
Viewing 2 replies - 16 through 17 (of 17 total)
  • Hi everyone! We at the W3 Total Cache Fixed Community figured out what was causing the problem.

    Here’s the fix:

    1. Open Cdn_Plugin.php (found in the w3-total-cache directory)

    2. Jump down to line 1009-1011 which should be:

    
    if ( Util_Environment::is_url( $mask ) ) {
        $custom_regexps_urls[] = Cdn_Util::get_regexp_by_mask( $mask );
    } elseif ( substr( $mask, 0, 1 ) == '/' ) {   // uri
    

    3. Replace those lines with:

    
    if ( Util_Environment::is_url( $mask ) ) {
        $mask = Util_Environment::url_to_uri( $mask );
    }
    if ( substr( $mask, 0, 1 ) == '/' ) {   // uri
    

    Hopefully you’ll come back and post your results so others can get confirmation.

    Thanks
    Kimberly

    That fix worked for me.
    Thanks.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘W3TC 0.9.5.2 break CDN when using Generic MIrror’ is closed to new replies.