The documentation shows how to invalidate specific items:
该文档显示了如何使特定项无效:
{
"Paths": {
"Quantity": 2,
"Items": ["/index.html", "/error.html"]
},
"CallerReference": "my-invalidation-2015-09-01"
}
However, as part of my build, I'd like to invalidate everything. Somehting like this:
但是,作为构建的一部分,我想使一切无效。像这样:
{
"Paths": {
"Items": "/*"
},
"CallerReference": "my-invalidation-2015-09-01"
}
Is there a way to do that with the CLI?
有没有办法用CLI做到这一点?
1 个解决方案
#1
1
Apparently this works:
显然这有用:
{
"Paths" : {
"Quantity": 1,
"Items": ["/*"]
},
"CallerReference": "whatever"
}
I wonder if get charged for invalidating just one item :-)... Probably not... and I'll probably pay a lot for invalidating all of my site's static resources every time.
我想知道是否因只使一个项目无效而受到指控: - )......可能不会......我可能会为每次使我网站的所有静态资源无效而付出很多代价。
#1
1
Apparently this works:
显然这有用:
{
"Paths" : {
"Quantity": 1,
"Items": ["/*"]
},
"CallerReference": "whatever"
}
I wonder if get charged for invalidating just one item :-)... Probably not... and I'll probably pay a lot for invalidating all of my site's static resources every time.
我想知道是否因只使一个项目无效而受到指控: - )......可能不会......我可能会为每次使我网站的所有静态资源无效而付出很多代价。