def set_expires_header(): seconds = make_cur_time(MIN_PERIOD) + MIN_PERIOD expire_time = datetime.fromtimestamp(seconds, g.tz) c.response.headers['expires'] = http_date_str(expire_time)
def set_expires_header(): seconds = make_cur_time(MIN_PERIOD) + MIN_PERIOD expire_time = datetime.fromtimestamp(seconds, g.tz) response.headers['expires'] = http_date_str(expire_time)