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

import random
import time

def main(request, response):
    # no-cache itself to ensure the user agent finds a new version for each update.
    headers = [(b'Cache-Control', b'no-cache, must-revalidate'),
               (b'Pragma', b'no-cache')]

    # Set a normal mimetype.
    content_type = b'application/javascript'

    headers.append((b'Content-Type', content_type))
    # Return a different script for each access.
    return headers, u'// %s %s' % (time.time(), random.random())