Only cache .js file.
Make sure all modules got snapshoted.