set response.from_cache before calling hooks