Cris
Cris

Reputation: 13351

Is it possible to invalidate azure cdn by delete-ting a file and re-uploading it?

I am having azure storage and using as it as cdn for my web application,now i want to invalidate my cdn content every time when i upload files to the storage account.

My question is that when i delete a file in azure storage container and upload it again with same name,Will it cause cdn to invalidate this file?(I am aware that appending file version to filename will cause cdn to invalidate that file,but in this case i need to monitor all old files and remove them which are not referenced now,which is my last resort)

Upvotes: 1

Views: 1265

Answers (1)

Nathan
Nathan

Reputation: 1016

Azure does not yet support a purge, though it is rumored to be under development. Deleting an object from blob storage will not cause a purge because the object will still be subject to TTL. Only after the TTL has expired will the CDN check to see if the object is still valid, and then remove it.

Until Azure CDN implements a purge you either need to use versioning or manage content expiration.

Upvotes: 1

Related Questions