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?

feita há 2 meses193 visualizações
1 Resposta
3
Resposta aceita

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
ESPECIALISTA
respondido há 2 meses
profile picture
ESPECIALISTA
avaliado há 2 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas