moshen/jekyll-asset_bundler — pull request #15 by NV (2013-09-01 01:26:48+00:00)
Title: Introduce `bundle_name` setting

A classic approach to handling bundles is to use a hash of the file content as a filename and attach 'Cache-Control: max-age=31556900' or 'Expires' HTTP header.

Now imagine that a have a website with 100 HTML pages. All of them include js like so:

When we change JS, the hash of the file changes too, causing all HTML files that uses that JS to change as well.

One solution to this problem would be to stop using hashes as filenames.

--

I use `bundle_name` option on [n12v.com](http://n12v.com/) where PJAX used heavily. JS doesn’t get requested when user navigates between pages but HTML does. It makes more sense to don’t use MD5 hashes for bundle names.