add function to create cache filename from url