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?

preguntada hace 2 meses192 visualizaciones
1 Respuesta
3
Respuesta aceptada

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
EXPERTO
respondido hace 2 meses
profile picture
EXPERTO
revisado hace 2 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas