Issue #2218463 by znerol, damiankloip, rbayliss: Fixed Private file and image style downloads throw 500 error when page cache is active.