Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are two reasons why this can happen. The first is that the content provider can set the <code>expires</code> heading so that the browser will not issue a second request, and the second is how browsers actually handle <code>GET</code> requets in HTTP, such as the get request to include the script.</p> <h2>1. Setting Expires Header of Content</h2> <p>The content provider can set the <code>Expires</code> header so that the script is cached by the browser the first time, hence the lack of a second request. This is a good standard web practice for speeding up web pages, and the expires header is set by the host server of a script. Yahoo Developer has a good article on this at <a href="http://developer.yahoo.com/performance/rules.html" rel="nofollow">Add an Expires or a Cache-Control Header</a> which recommends adding the Expires header to scripts and stylesheets in addition to images.</p> <h2>2. Script Get Method is Idempotent</h2> <p><code>GET</code> requests, such as the get request to include the javascript on a webpage are safe methods according to the HTTP specification. Safe methods are also idempotent, in that multiple requests yield the same result as a single request and that the method is only used to retrieve data. Many browsers take advantage of this property of the HTTP specification, and won't sent multiple requests for idempotent methods. George Cummins explained this well, and an article on this is available from the <a href="http://developer.mozilla.org/en-US/docs/HTTP" rel="nofollow">Mozilla Developer Network</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload