makes sure cache folder exists and fixed problem with js compression over 200000 bytes