M
M
Michael2019-12-17 17:05:32
HTTP headers
Michael, 2019-12-17 17:05:32

How correct is it to include such Link headers in the server response?

For the sake of curiosity, in the server console I sometimes indulge in viewing the responses of the servers of known and visited sites, I also apply interesting solutions to my modest projects.
The question is actually this: how correct is it to include such headers (see the spoiler) in the server response and, accordingly, give them not as tags in the HTML code, but in the server response (nginx in particular)?
The same tags are in the code of the page itself.
What is the catch or trick of this solution?

spoiler
Cache-Control: max-age=60
Connection: close
Date: Wed, 18 Dec 2019 03:03:57 GMT
Server: nginx
Vary: Accept-Encoding
Content-Type: text/html; charset=windows-1251
Expires: Wed, 18 Dec 2019 03:04:57 GMT
Access-Control-Allow-Origin: *
Link: <https://static.gazeta.ru/nm2015/css/common.v249.css>; rel=preload; as=style
Link: <https://static.gazeta.ru/nm2015/css/common_2.v422.css>; rel=preload; as=style
Link: <https://static.gazeta.ru/nm2015/css/trash_css.v45.css>; rel=preload; as=style
Link: <https://static.gazeta.ru/nm2015/css/v2/headerstyle.v95.css>; rel=preload; as=style
Link: <https://static.gazeta.ru/nm2015/css/article.v46.css>; rel=preload; as=style
Link: <https://static.gazeta.ru/nm2015/css/news.v40.css>; rel=preload; as=style
Link: <https://static.gazeta.ru/nm2015/css/print.v5.css>; rel=preload; as=style
Link: <https://static.gazeta.ru/nm2015/js/jquery3.js>; rel=preload; as=script
Link: <https://static.gazeta.ru/nm2012/js/jquery/jquery.cookie.js>; rel=preload; as=script
Link: <https://static.gazeta.ru/nm2015/js/lib/media-match-master/media.match.min.js>; rel=preload; as=script
Link: <https://static.gazeta.ru/nm2015/js/gazeta.media.query.js>; rel=preload; as=script
Link: <https://static.gazeta.ru/nm2015/js/common.v225.js>; rel=preload; as=script
Link: <https://static.gazeta.ru/nm2015/js/script.v47.js>; rel=preload; as=script
Link: <https://static.gazeta.ru/nm2015/js/main.v15.js>; rel=preload; as=script
Link: <https://static.gazeta.ru/nm2015/js/ga_selector_lib.v23.js>; rel=preload; as=script
Link: <https://static.gazeta.ru/nm2015/js/jquery.resizeblock.v1.js>; rel=preload; as=script
Link: <https://ssp.rambler.ru/capirs_async.js>; rel=preload; as=script
Link: <https://cdn.pushwoosh.com/webpush/v3/pushwoosh-web-notifications.js>; rel=preload; as=script
Link: <https://mc.yandex.ru/metrika/tag.js>; rel=preload; as=script
Link: <https://static.gazeta.ru/nm2015/js/ga_selector_lib.v23.js>; rel=preload; as=script
Link: <https://static.gazeta.ru/nm2015/js/clean_mm_addition.js>; rel=preload; as=script
Link: <https://static.gazeta.ru/nm2015/js/photorep_no_zoom_v2.js>; rel=preload; as=script
Link: <https://static.gazeta.ru>; rel=preconnect
Link: <https://img.gazeta.ru>; rel=preconnect
Link: <https://fonts.gstatic.com>; rel=preconnect
Link: <https://counter.yadro.ru>; rel=preconnect
Link: <https://d31j93rd8oukbv.cloudfront.net>; rel=preconnect
Link: <https://www.google-analytics.com>; rel=preconnect
Link: <https://tt.onthe.io>; rel=preconnect
Link: <https://ar.tns-counter.ru>; rel=preconnect
Link: <https://ssp.rambler.ru>; rel=preconnect
Link: <https://profile.ssp.rambler.ru>; rel=preconnect
Link: <https://an.yandex.ru>; rel=preconnect
Link: <https://ads.adfox.ru>; rel=preconnect
Link: <https://banners.adfox.ru>; rel=preconnect
Link: <https://rtax.criteo.com>; rel=preconnect
P3P: policyref="/w3c/p3p.xml", CP="CUR ADM OUR NOR STA NID"
Set-Cookie: uid=URNIBV35lx1g6A6ibvfjAg==; expires=Thu, 17-Dec-20 03:03:57 GMT; domain=.gazeta.ru; path=/

PS: I'm interested in the headings Link- the rest are quite understandable and standard.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2019-12-17
@Sanasol

And here is the nginx config?
This gives back the site, and there is a very specific goal, to speed up the loading of this very site.
https://developer.mozilla.org/en-US/docs/Web/HTTP/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question