Cannot purge image having path that contains whitespaces in Azure CDN (classic)

Fabio Cannas 30 Reputation points
2023-11-27T11:57:33.6+00:00

Hello,

in Azure CDN (classic), seems I cannot purge resource paths that contains whitespaces.

I tried to purge cache from the portal and directly calling the API as well.

User's image

User's image

Apparently the operation is successful, but the cache is not cleared.

I even tried to call the API replacing the whitespaces with "%20", but the result is the same.

What am I doing wrong?

Thanks,

Fabio

Azure Content Delivery Network
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 49,586 Reputation points Microsoft Employee
    2023-12-11T09:38:38.2233333+00:00

    Hello @Fabio Cannas ,

    I understand that you are unable to purge image which has a path containing whitespaces in Azure CDN (classic).

    I discussed this issue with the Azure CDN Product Group team and found that this is a bug and below is the PG's response:

    We identified the issue that is preventing the customer from purging paths with white spaces. The purge issue is only seen on the Azure Front Door POPs which have undergone the new platform update. 

    Purge paths containing characters which will be url or percentage encoded such as white spaces, are not handled correctly. The problem persists even if the purge paths contain characters that are url encoded, i.e., %20 instead of white space. 

    We will be tracking the fix for this issue, but we do not have an ETA. Until then the customer could use the work around to purge the entire directory using wildcard. We understand that this is not favorable to the customer, but we will work on the fix soon.

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.