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