Self updating web page taylor swift dating a glee star
Unfortunately, these short cache times for bootstrap scripts have a negative impact on web performance.
When the snippet’s resource is requested after the cache time has expired, instead of reading the resource from cache the browser has to issue a Conditional GET request (containing the If-Modified-Since and If-None-Match request headers).
Even if the response is a simple 304 Not Modified with no response body, the time it takes to complete that roundtrip impacts the user experience.
That impact varies depending on whether the bootstrap script is loaded in the normal way vs. Loading scripts the “normal way” means using HTML: .
Often this is done by adding a “fingerprint” to the path, such as the source control version number, file timestamp, or checksum.
Revving a resource’s URL is an easy solution for getting updates to the user when it comes to the website’s own resources.
The website owner knows when there’s an update and since they own the web page they can change the resource URL. In most cases, 3rd party snippets contain the URL for a URL because they don’t have access to change all the web pages containing this snippet.
If the snippet is an async script, as is the case for , the negative impact is reduced.
In this case the main drawback impacts the widget itself – it isn’t rendered until the response to the Conditional GET is received.
Analyzing your site using Page Speed or YSlow often produces lower scores than you might expect due to 3rd party resources with short cache times.