Web HTTP - Cache Bursting (Content fingerprinting)

About

A cache-buster makes the URL unique each time the content is new and the content will therefore not be in the cache.

Because the cache key of the resources contains the URI, the HTTP cache mechanism (of the browser, proxy,…) will have then a cache miss and will be then forced to fetch the resources again.

The cache-buster can take the form of

  • a unique query string used uniquely to form a unique URL
  • or an unique location path:
    • with the version in the path or in the name of the file
    • or with http rewrite

Syntax

my.js?ver=3.0.1
<!-- or -->
my-3.0.1.js <!-- with http rewrite rule to redirect to the file my.js -->

Implementation

  • Manually add a cache buster when the file has changed
  • Automatically compute it for instance to Hash or Date Time value.

Documentation / Reference





Discover More
Macro Creative Admanager
Ad - Creative

A Creative is the visualization part of the ad that's shown on a webpage or an app It can be: an image a video in the form of a code snippet: HTML5 Campaign Manager tags The creative is...
Card Puncher Data Processing
Consumer Analytics - Event Collector

A collector collects event send by a tracker The event and data send are describe in a measurement protocol Data aggregation refers to techniques for gathering individual data records (for example...
HTTP - Cache (Cache-Control Header, Bursting, )

When sending a response, several headers have an influence / control over the cache store, we call them cache control headers The cache control header are: Name Description Cache-Control Define properties...
Chrome Devtool Network 304
How to implement and check a Web / HTTP cache ?

Implementing and verifying that the HTTP cache is set and working properly is not a straightforward task. This article gives you a step by step.
Javascript - Cache

A javascript code added as a file is a candidate for a cache system. See below:



Share this page:
Follow us:
Task Runner