concept ETag header in category javascript

appears as: n ETag header, ETag header
JavaScript Application Design: A Build First Approach

This is an excerpt from Manning's book JavaScript Application Design: A Build First Approach.

Once you’ve computed a hash, you can use it as a query string parameter in your page, /all.js?_=a38cbf9e, or you can append it to the filename, such as /a38cbf9e .all.js. Alternatively, you can add the hash to an ETag header. Choosing the right approach is a matter of identifying your needs. If you’re dealing with static assets such as JavaScript resources, then you’re probably better off hashing the filename (or its query string) and using an Expires header. If you’re dealing with dynamic content, setting the hash in an ETag is preferred.

sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest