provided application.clearCache() to clear browser cache
Merged with Johan's changes