Check if cache file exists before serving it.