nanoc-cachebuster

nanoc-cachebuster

Your website should use far-future expires headers on static assets, to make the best use of client-side caching. But when a file is cached, updates won't get picked up. Cache busting is the practice of making the filename of a cached asset unique to its content, so it can be cached without having to worry about future changes. This gem adds a filter and some helper methods to Nanoc, the static site generator, to simplify the process of making asset filenames unique. It helps you output fingerprinted filenames, and refer to them from your source files. It works on images, javascripts and stylesheets. It is extracted from the nanoc-template project at http://github.com/avdgaag/nanoc-template.

Rubygem nanoc-cachebuster

Total Downloads
9711
Releases
6
Current Version
0.3.1
Released
2012-05-24 00:00:00 UTC
First Release
2011-05-21 00:00:00 UTC
Depends on following gems
Depending Gems
0

Github avdgaag/nanoc-cachebuster

Watchers
13
Forks
5
Development activity
Inactive
Last commit
2013-11-09 12:35:41 UTC
First commit
Top contributors
Contributors
3
Issues

Resources

There are no resources yet, be the first to submit one!

Comments

There are no comments yet, be the first to write one!

Post a comment

Markdown supported
or
×

In order to continue, you must be signed in using your Github account.

If you're signing in using this account for the first time Github will ask for your permission to give access to your public user data to the Ruby Toolbox.

Although the Github Authorization page does not mention it, the request includes read-only access to your verified email address (user:email OAuth scope). This is neccessary so there's a way to notify you about comments, information about your accepted project edits and the like. You can review your notification settings on your account page once you're signed in.