def METHOD_NAME(self, response):
    if self.set_expire:
        response.cache_control.public = False
        response.cache_control.private = True
        response.cache_control.max_age = int(self.expire_offset.total_seconds())
        response.expires = utc_dt(datetime.utcnow() + self.expire_offset)