Turns out it doesn't work to have appCache on every page.

The whole thing is causing lots of problems anyways.
Disabled appCache for now