Fixing issue-102. Add test cases also. Fix - Index caches against domain name rather than hash of encodings
Removing an unused variable
Made changes suggested in pull request 103. Pull request 103 is the fix for issue 102
Merge pull request #103 from thejkane/master

Fix for issue 102