dont add version hashes when in dev mode
refresh media for testing
Merge pull request #2 from hughes/master

Auto refresh if cache is empty