Error in Google Page Speed Service API

Discussion in 'Google API' started by vishal verma, Jul 21, 2013.

  1. #1
    Hello

    I am using Google Page Speed Service on my blog, some time I get this error "Fetching of original content failed due to Proxy Publisher Failure: TIMEOUT"

    from Google PSS faq I got a piece of code which I need to add in wp-config.php
    here is the code

    // The real client IP is the first IP address in HTTP_X_FORWARDED_FOR
    if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
    $ips = explode(',',$_SERVER['HTTP_X_FORWARDED_FOR']);
    $_SERVER['REMOTE_ADDR'] = $ips[0];
    }

    So here is my question where to add this code I mean inside opening tag or outside opening tag of wp-config.php
     
    vishal verma, Jul 21, 2013 IP