Output to temporary directory when serving content