In invalidating cache
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.
If you configured Cloud Front to forward cookies to your origin, Cloud Front edge caches might contain several versions of the object.
For more information about the charges for invalidation, see Paying for Object Invalidation.
To control the versions of objects that are served from your distribution, you can either invalidate objects or give them versioned file names.
Whether you invalidate objects by using the Cloud Front console or the Cloud Front API, the requirements and limitations for specifying objects are the same.
Note the following about specifying the objects that you want to invalidate.
If you'll want to update your objects frequently, we recommend that you primarily use object versioning for the following reasons: wildcard, see Invalidation paths.
If you want to invalidate selected objects but your users don't necessarily access every object on your origin, you can determine which objects viewers have requested from Cloud Front and invalidate only those objects.