How does CloudFront count HTTP/HTTPS requests?

0

Assume example.com is using a CloudFront distribution and one of its pages is: https://example.com/index.html

When each time the page is accessed, these files are also loaded because they are part of the page:

<link href="https://example.com/images/favicon.ico" rel="icon">
<link href="https://example.com/css/style.css" rel="stylesheet">
<script src="https://example.com/js/script.js"></script>
<img src="https://example.com/images/logo.jpg">

Will it be 1 (html, or a URL: https://example.com/index.html) or 5 (html + ico + css + js + jpg) as HTTP/HTTPS requests counted by CloudFront?

已提問 2 個月前檢視次數 193 次
1 個回答
3
已接受的答案

When a page like https://example.com/index.html is accessed, and it includes additional resources such as a favicon, CSS, JavaScript, and images, each of these resources is requested separately by the browser. Therefore, in the scenario you described, there would be a total of 5 HTTP/HTTPS requests made to the CloudFront distribution:

  1. https://example.com/index.html (HTML page)
  2. https://example.com/images/favicon.ico (Favicon)
  3. https://example.com/css/style.css (CSS stylesheet)
  4. https://example.com/js/script.js (JavaScript file)
  5. https://example.com/images/logo.jpg (Image)

Each of these requests is counted separately by CloudFront. So, in this case, CloudFront would count 5 requests. This is important to consider for monitoring, billing, and performance optimization purposes.

Additional

To monitor the number of requests made by your website, you can use the Request Checker, which tracks the total number of requests made.

profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南