Support » Plugin: WP Fastest Cache » Azure CDN setup ( Other CDN providers )

  • Hey there,

    I am trying to setup my CDN which is in Azure cloud.

    When i enter the CDN and Origin Urls and click “Next”, there is a “Bad Request” message for the CDN url.

    While debugging the body of the response from Azure is:

    "<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidQueryParameterValue</Code><Message>Value for one of the query parameters specified in the request URI is invalid.
    RequestId:xxx
    Time:2018-05-10T12:31:03.4601728Z</Message><QueryParameterName>comp</QueryParameterName><QueryParameterValue /><Reason /></Error>"

    I managed to make it work by returning success in the “wpfc_check_url_ajax_request_callback” function by this manner:

    if(strpos($_GET["url"] , 'azureedge') !== false){
        $res = array("success" => true);
     }

    , however maybe another solution may be more acceptable.

    Best regards.

    • This topic was modified 5 years, 10 months ago by siganos1x.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Azure CDN setup ( Other CDN providers )’ is closed to new replies.