implements cache file in webapp plugin