chromium/third_party/blink/web_tests/external/wpt/service-workers/service-worker/resources/update-during-installation-worker.py

import random

def main(request, response):
    headers = [(b'Content-Type', b'application/javascript'),
               (b'Cache-Control', b'max-age=0')]
    # Plug in random.random() to the worker so update() finds a new worker every time.
    body = u'''
// %s
importScripts('update-during-installation-worker.js');
    '''.strip() % (random.random())
    return headers, body