change cache.js approach
Revert "change cache.js approach"

This reverts commit e1b132d8ef8ea10829b7b50be043a6579484a052.