Invalid AWS- / How to be sure if image is removed from the edge

I want to invalidate the root directory and http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects

It says we can use wild cards

Say we have a way like

https: //cdn_url/rootimage/first/1/type/1.png

https: //cdn_url/rootimage/first/1/type/2.png

https: //cdn_url/rootimage/first/2/type/1.png

https: //cdn_url/rootimage/first/2/type/2.png

https: //cdn_url/rootimage/second/1/type/1.png

https: //cdn_url/rootimage/second/1/type/2.png

https: //cdn_url/rootimage/second/2/type/1.png

https: //cdn_url/rootimage/second/1/type/2.png

So if I write

 AmazonCloudFrontClient objClient = new AmazonCloudFrontClient(ConfigurationManager.AppSettings["s3accesskey"], ConfigurationManager.AppSettings["s3secret"]);
        objClient.CreateInvalidation(new CreateInvalidationRequest
        {
            DistributionId = ConfigurationManager.AppSettings["CDNDistributionId"],
            InvalidationBatch = new InvalidationBatch 
            { 
                Paths = new Paths { Items = "/cdn_url/rootimage/*", Quantity = 1 } 
            }
        });

Will the above code work. and how about the quantity will be 1 or the quantity of all the actual images.

, .

, , , . , Edge.

+4
2

,



, 15 2016 09:54:40 GMT Etag
"8239143f88d513feb78b025c5d4e1da7" Last-Modified
, 12 2016 05:32:30 GMT
AmazonS3 1.1 cldfrontUrl.ddfds(CloudFront) X-Amz-Cf-Id NKGtNTaLYGepIJ9Vjc1xgtQGn4AuhukYutQBDtSRPIyTGBDwLcxXgA == X-Cache

,

Miss from cloudfront// .

// .

+3

URL- CloudFront, , , URL-/ .

(.. , ), *. /* .

+2

Source: https://habr.com/ru/post/1628251/


All Articles