Update CorsListener.php for caching

The caching didn't work for me until I added this line