blob: 169f70c0450c79c01dc5c375e9fb35d5b81e5a73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import importlib
import time
utils = importlib.import_module("loading.early-hints.resources.utils")
def main(request, response):
utils.store_request_timing_and_headers(request)
headers = [
("Content-Type", "text/javascript"),
("Cache-Control", "max-age=600"),
]
body = "/*empty script*/"
# Sleep to simulate loading time.
time.sleep(0.05)
return (200, "OK"), headers, body
|