For more information, see Amazon Cloud Front Pricing.If the invalidation path is a directory and if you have not standardized on a method for specifying directories—with or without a trailing slash (/)—we recommend that you invalidate the directory both with and without a trailing slash, for example, You can use the Cloud Front console to create and run an invalidation, display a list of the invalidations that you submitted previously, and display detailed information about an individual invalidation.If any invalidation paths appear in the original and in the copy, Cloud Front will try to invalidate the files twice, and both invalidations will count against your maximum number of free invalidations for the month.If you've already reached the maximum number of free invalidations, you'll be charged for both invalidations of each file.When you invalidate a file, Cloud Front invalidates every cached version of the file regardless of the header values.You can't selectively invalidate some versions and not others based on header values.
, which replaces 0 or more characters, must be the last character in the invalidation path.
You can submit a specified number of invalidation paths each month for free.
If you submit more than the allotted number of invalidation paths in a month, you pay a fee for each invalidation path that you submit.
For more information about the charges for invalidation, see Paying for File Invalidation.
To control the versions of files that are served from your distribution, you can either invalidate files or give them versioned file names.