What improves CloudFront cache hit ratio?
AdvancedConceptDNS, CDN and Messaging
Answer
Normalize the cache key: forward only necessary query strings, headers and cookies (use cache policies, not legacy forwarding), lowercase and sort query strings via a Function, enable compression, set appropriate Cache-Control/TTLs at the origin, and enable Origin Shield to add a centralized cache layer in front of the origin and collapse requests.
Check the CacheHitRate metric and standard logs, and look at the x-cache response header (Hit from cloudfront or Miss from cloudfront).
More on DNS, CDN and Messaging
What are the Route 53 record types and why use Alias instead of CNAME?BeginnerDescribe Route 53 routing policies.IntermediateHow do Route 53 health checks and DNS failover work?AdvancedWhat is a Route 53 private hosted zone?IntermediateHow does DNS TTL relate to failover and migrations?BeginnerWhat are Route 53 Resolver endpoints and rules?Advanced