Possibility of redefine the file extension and append trailing if is missing in cache folder parameter

Hi Gilbert! I used your class in a [project](https://github.com/brunomarks/Analytics-Locally) to cache Analytics GA. It was very helpful and made ​​two minor improvements. Maybe this can be useful for you. 

Tks! :)