blob: 95e4522007c1d2be14045f7582ebe2b5347abd87 [file] [log] [blame]
import time
def main(request, response):
headers = [('Content-Type', 'application/javascript'),
('Cache-Control', 'max-age=0')]
# Add timestamp to the worker so update() finds a new worker every time.
body = '''
// %s
importScripts('update-during-installation-worker.js');
'''.strip() % time.clock()
return headers, body