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?

1 Risposta
3
Risposta accettata

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
ESPERTO
con risposta 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande