Hi 航 鈴木
We understood that you need to check why some countries low cache hit ratios while using Azure Front Door's caching feature.
Here are a few investigation methods and improvement measure you can try:
- Ensure that the caching rules are correctly configured for each routing rule. Make sure that caching is enabled and that the rules aren’t inadvertently set to disable caching for specific content types or origin responses.
- Review Analytics Reports: Use the Analytics > Reports > Traffic by Location section to analyze the cache hit and miss counts. This can help identify specific countries with low ratios and potentially correlate issues with specific content or request types.
- Refer:https://learn.microsoft.com/en-us/azure/frontdoor/standard-premium/how-to-reports?tabs=traffic-by-domain
- Try to analyse the edge site behaviour where Each Azure Front Door edge site manages its own cache. A request from one country may hit a different edge site than another, leading to:
- Cold cache in some regions
- Inconsistent cache population
- Investigate Cache Control Headers: Review the origin response headers for requests from countries with low cache hit ratios. Look for headers like
Cache-Control
,Pragma
, or any other cache-related settings that might indicate content should not be cached. Ensure that you're not sending headers that prevent caching. - If you're using geo-filtering, check if there are restrictions that could be affecting which content is being cached based on location.
- Keep monitoring the caching report over time to look for trends. It can help in identifying patterns, such as times when cache hits improve or decline.
Could you please provide detailed investigation methods and improvement measures for the above?
1.Separate Static and Dynamic Routes:
- Use different paths or subdomains for static assets (e.g.,
/images/
,/static/
) - Enable aggressive caching for static routes
2 Monitor and Tune Regularly:
- Use Azure Monitor and Log Analytics to track cache hit/miss trends
- Set up alerts for cache hit ratio drops in key regions
- Refer: https://learn.microsoft.com/en-us/azure/frontdoor/monitor-front-door?pivots=front-door-standard-premium
I hope this information is helpful! If my answer helped you resolve your issue, please consider marking it as the correct answer or Upvote. This helps others in the community find solutions more easily. Thanks!