Some web browser extensions (add-ons), for example ClearURLs, remove ETag headers, which causes updates to fail. To update your distribution, disable this browser extension or turn off ETag filtering.
Also, This error occurs because you need to first get the current distribution config with cloudfront.getDistributionConfig and then copy the ETag and DistributionConfig fields into your cloudfront.updateDistribution call. You modify the DistributionConfig as needed to achieve the actual config update you're trying to do.
Hope this helps, please click Accept answer if it helped you resolve the issue.
Error using CloudFront Distribution signed Url to access restricted S3 imagesasked 9 months ago
Moving to Cloudfront from LightSail Distributionasked a month ago
can't edit - The If-Match version is missing or not valid for the resource.asked a year ago
How to provision CloudFront distribution with ACM certificate in CloudFormation?asked 7 months ago
How to add domain alias to existing CloudFront distribution using CDKAccepted Answerasked 10 months ago
OAI or not OAI for serving a static website in S3 using CloudFrontasked 6 months ago
Not able to disable and delete a CloudFront distributionasked a month ago
Unable to delete cloudFront distribution despite being the ROOT userasked 20 days ago
Can a CloudFront origin be another CloudFront distribution?asked 6 months ago
I can't delete my certificate because it's associated with an invisible cloudfront distributionAccepted Answerasked 2 months ago