1
0
Fork 0
firefox/testing/web-platform/tests/loading/early-hints/resources/delayed-js.h2.py
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

16 lines
442 B
Python

import importlib
utils = importlib.import_module("loading.early-hints.resources.utils")
def main(request, response):
id = request.GET.first(b"id")
# Wait until the id is set via resume-delayed-js.h2.py.
utils.wait_for_preload_to_finish(request, id)
headers = [
("Content-Type", "text/javascript"),
("Cache-Control", "max-age=600"),
]
body = "/*empty script*/"
return (200, "OK"), headers, body