Fixing some problems with compression and caching of local files.