Otherwise, we recreate it and update the stat info (called Changes to a property are made when a lock is held (to ensure a single writer, see Locking Design).Therefore when the lock is released we know we have the most recent value and we need to refresh its stat info.Important You can invalidate most types of objects that are served by a web distribution, but you cannot invalidate media files in the Microsoft Smooth Streaming format when you have enabled Smooth Streaming for the corresponding cache behavior.In addition, you cannot invalidate objects that are served by an RTMP distribution.For more information, see Configuring Cloud Front to Cache Objects Based on Cookies.
If your Cloud Front distribution triggers a Lambda function on viewer request events, and if the function changes the URI of the requested object, you must invalidate both URIs to remove the object from Cloud Front edge caches: 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.
For more information about access logs, see Access Logs.
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.