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달 전192회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠