blob: cde28544e60a0613debe98bfe6c44bdfb610317b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import datetime
import time
epoch = datetime.datetime(1970, 1, 1)
def main(req, res):
# Artificially delay response time in order to ensure uniqueness of
# computed value
time.sleep(0.1)
now = (datetime.datetime.now() - epoch).total_seconds()
return ([
(b'Cache-Control', b'no-cache, must-revalidate'),
(b'Pragma', b'no-cache'),
(b'Content-Type', b'application/javascript')],
u'version = "%s";\n' % now)
|