diff --git a/lib/image.js b/lib/image.js
index <HASH>..<HASH> 100644
--- a/lib/image.js
+++ b/lib/image.js
@@ -3,6 +3,7 @@ module.exports = image;
 var debug = require('debug')('inliner');
 
 function image(url) {
+  url = url.replace(/#.*$/, '');
   this.emit('progress', 'get image ' + url);
   return this.get(url, { encoding: 'binary' }).then(function then(res) {
     if (url.indexOf('data:') === 0) {
fix: ignore fragment identifiers on urls

Since the cache is keyyed by URL, it makes sense to ignore the hash fragment identifier.