Cache polyfill [currently broken]

Creating PR to be able to comment on the code.