youtube / spfjs

A lightweight JS framework for fast navigation and page updates from YouTube
https://youtube.github.io/spfjs/
MIT License
2.24k stars 147 forks source link

Ensure cached responses use correct keys for extracted resources. #313

Closed nicksay closed 9 years ago

nicksay commented 9 years ago

When extracting resources before caching, use quoted key access to ensure that compilation does not use obfuscated keys. If obfuscated keys are used, then subsequent processing of cached responses will not find the previously extracted resources if parsing was done by a previous version of SPF, and this change ensures cross-version compatibility.

Progress on #307.

nicksay commented 9 years ago

I had a lint error; it's now fixed. Merging shortly.

DavidCPhillips commented 9 years ago

LGTM