Example #1
0
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)
Example #2
0
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)