Fixing caching of files