I send Early Hints headers on my own and getting Error 520

What is the error number?

520

Here is my headers, tested on localhost / Chrome:

$ curl -k -I -XGET https://localhost/
HTTP/2 103 
link: </images/181/content/v-irkutskom-cheremkhovo-muzhchina.jpg>; rel=preload; as=image
link: </images/180/content/vial-be-predlozhila-lyzhnitse-kuleshovoi.jpg>; rel=preload; as=image
link: </images/179/content/v-ul-ianovskoi-oblasti-obnaruzhen.jpg>; rel=preload; as=image
link: </images/178/content/zenit-interesuetsia-pravym-zashchitnikom.jpg>; rel=preload; as=image

HTTP/2 200 
link: </images/181/content/v-irkutskom-cheremkhovo-muzhchina.jpg>; rel=preload; as=image
link: </images/180/content/vial-be-predlozhila-lyzhnitse-kuleshovoi.jpg>; rel=preload; as=image
link: </images/179/content/v-ul-ianovskoi-oblasti-obnaruzhen.jpg>; rel=preload; as=image
link: </images/178/content/zenit-interesuetsia-pravym-zashchitnikom.jpg>; rel=preload; as=image
content-type: text/html; charset=utf-8
date: Tue, 14 Jan 2025 22:53:18 GMT

But when I remove HTTP/2 103 header from response, Cloudflare adds it by itself and page works. What is the correct way to set Early Hints by my own? Why it’s not possible just to repeat origin’s response?

Still a problem

Still a problem

Still a problem

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.