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
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.
,
, 15 2016 09:54:40 GMT Etag"8239143f88d513feb78b025c5d4e1da7" Last-Modified, 12 2016 05:32:30 GMTAmazonS3 1.1 cldfrontUrl.ddfds(CloudFront) X-Amz-Cf-Id NKGtNTaLYGepIJ9Vjc1xgtQGn4AuhukYutQBDtSRPIyTGBDwLcxXgA == X-Cache
Miss from cloudfront// .
// .
URL- CloudFront, , , URL-/ .
(.. , ), *. /* .
*
/*
Source: https://habr.com/ru/post/1628251/More articles:Error: (50, 28) A resource was not found that matches the specified name (in 'value' with the value '@ string / google_maps_key') - androidLaravel Mongodb Raw mongo запрос с датой - phpVertical centering does not work because the line does not reach 100% of the height - htmlClient client response string encoding - javaWordpress - Buddypress plugin - cssphp merging an image with its own flipping and rotating view at different positions - phpAn improved or optimized way to filter customer records using three drop-down filters - performanceSvcTraceViewer Tool - wcfA string is read as a number, not read it by number when the conversation is turned on in android - androidlast x-axis label with datetime format not in highchart - javascriptAll Articles