{"id":83142,"date":"2020-05-29T01:41:57","date_gmt":"2020-05-28T23:41:57","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/servis-proverki-http-zagolovkov-servera"},"modified":"2020-05-29T01:41:57","modified_gmt":"2020-05-28T23:41:57","slug":"servis-proverki-http-zagolovkov-servera","status":"publish","type":"post","link":"https:\/\/prohoster.info\/ro\/blog\/administrirovanie\/servis-proverki-http-zagolovkov-servera","title":{"rendered":"Serviciul de verificare a anteturilor HTTP ale serverului","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Pentru orice site, este esen\u021bial s\u0103 configura\u021bi corect anteturile HTTP. Au fost scrise multe articole despre anteturi. Aici am generalizat experien\u021ba acumulat\u0103, documenta\u021bia RFC. Unele dintre anteturi sunt obligatorii, altele \u00eenvechite, iar unele pot crea confuzie \u0219i contradic\u021bii. Am creat un instrument pentru <noindex><a rel=\"nofollow\" href=\"https:\/\/http.itsoft.ru\">verificarea automat\u0103 a anteturilor HTTP ale serverului web<\/a><\/noindex>. Spre deosebire de multe alte servicii care doar afi\u0219eaz\u0103 anteturile, acest serviciu permite:<\/p>\n<ol>\n<li>s\u0103 specifica\u021bi valorile anteturilor standard;<\/li>\n<li>s\u0103 ad\u0103uga\u021bi proprii anteturile personalizate;<\/li>\n<li>s\u0103 indica\u021bi versiunea protocolului HTTP: 1.0, 1.1, 2 (verific\u0103 dac\u0103 HTTP\/2 este suportat);<\/li>\n<li>s\u0103 specifica\u021bi metoda de cerere, timpul de a\u0219teptare \u0219i datele postate pentru a le trimite serverului;<\/li>\n<li>de asemenea, instrumentul verific\u0103 corectitudinea r\u0103spunsurilor la cererile If-Modified-Since, If-None-Match, dac\u0103 \u00een r\u0103spunsul serverului exist\u0103 Last-Modified sau ETag.<\/li>\n<\/ol>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\nNu pretindem c\u0103 avem adev\u0103rul suprem. Pentru con\u021binuturi specifice \u0219i pentru proiecte individuale, pot exista desigur abateri. Dar acest serviciu v\u0103 va indica cu siguran\u021b\u0103 la ce ar trebui s\u0103 fi\u021bi aten\u021bi, poate va fi util s\u0103 edita\u021bi anteturile dvs. Iat\u0103 lista de aspecte pe care acest serviciu de verificare le urmeaz\u0103. De ce a\u0219a, citi\u021bi <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/search\/?q=%D0%B7%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D0%B2%D0%BA%D0%B8#h\">\u00een articolele de pe Habr<\/a><\/noindex>.<\/p>\n<h2>Anteturi obligatorii<\/h2>\n<p><\/p>\n<ul>\n<li>, precum \u0219i API-ul \u00een stadiu de proiect<\/li>\n<li>Content-Type cu specificarea charset pentru con\u021binutul textului, preferabil utf-8<\/li>\n<li>Content-Encoding pentru comprimarea con\u021binutului textului<\/li>\n<\/ul>\n<p><\/p>\n<h2>Anteturi \u00eenvechite \u0219i inutile<\/h2>\n<p><\/p>\n<ul>\n<li>Server cu versiunea detaliat\u0103 a serverului web<\/li>\n<li>X-Power-By<\/li>\n<li>X_ASPNET-Version<\/li>\n<li>Expires<\/li>\n<li>Pragma<\/li>\n<li>P3P<\/li>\n<li>Via<\/li>\n<li>X-UA-Compatible<\/li>\n<\/ul>\n<p><\/p>\n<h2>Anteturi dorite pentru securitate<\/h2>\n<p><\/p>\n<ul>\n<li>X-Content-Type-Options<\/li>\n<li>X-XSS-Protection<\/li>\n<li>Strict-Transport-Security<\/li>\n<li>Referrer-Policy<\/li>\n<li>Feature-Policy<\/li>\n<li>Content-Security-Policy sau Content-Security-Policy-Report-Only pentru a interzice scripturile \u0219i stilurile integrate.<\/li>\n<\/ul>\n<p><\/p>\n<h2>Anteturi pentru cache<\/h2>\n<p>\nSunt obligatorii pentru con\u021binutul static cu o durat\u0103 mare de caching \u0219i extrem de dorite pentru con\u021binutul dinamic cu o durat\u0103 mic\u0103 de caching.<\/p>\n<ul>\n<li>Last-Modified<\/li>\n<li>ETag<\/li>\n<li>Cache-Control<\/li>\n<li>Vary <\/li>\n<li>Este important ca serverul s\u0103 r\u0103spund\u0103 corect la anteturile: If-Modified-Since \u0219i If-None-Match<\/li>\n<\/ul>\n<p><\/p>\n<h2>HTTP\/2<\/h2>\n<p>\n\u00cen prezent, serverul ar trebui s\u0103 suporte HTTP\/2. \u00cen mod implicit, serviciul verific\u0103 func\u021bionalitatea serverului pe HTTP\/2. Dac\u0103 serverul dvs. nu suport\u0103 HTTP\/2, atunci alege\u021bi HTTP\/1.1.<br \/>\n<br \/>Sursa: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/504220\/\">habr.com<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u0432\u0430\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438. \u041d\u0430 \u0442\u0435\u043c\u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u0435\u0439. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043e\u0431\u043e\u0431\u0449\u0438\u043b\u0438 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u044b\u0442, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e RFC. \u041a\u0430\u043a\u0438\u0435-\u0442\u043e \u0438\u0437 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435, \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0435, \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043c\u043e\u0433\u0443\u0442 \u0432\u043d\u043e\u0441\u0438\u0442\u044c \u043f\u0443\u0442\u0430\u043d\u0438\u0446\u0443 \u0438 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u044f. \u041c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u0443\u0437\u043e\u043c\u0435\u0440\u043a\u0443 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u043c\u043d\u043e\u0433\u0438\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438, \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442: \u0437\u0430\u0434\u0430\u0442\u044c [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-83142","post","type-post","status-publish","format-standard","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u0432\u0430\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438. \u041d\u0430 \u0442\u0435\u043c\u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u0435\u0439. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043e\u0431\u043e\u0431\u0449\u0438\u043b\u0438 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u044b\u0442, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e RFC.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/ro\/blog\/administrirovanie\/servis-proverki-http-zagolovkov-servera\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"ro_RO\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0421\u0435\u0440\u0432\u0438\u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u0432\u0430\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438. \u041d\u0430 \u0442\u0435\u043c\u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u0435\u0439. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043e\u0431\u043e\u0431\u0449\u0438\u043b\u0438 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u044b\u0442, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e RFC.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/ro\/blog\/administrirovanie\/servis-proverki-http-zagolovkov-servera\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-05-28T23:41:57+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-05-28T23:41:57+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Serviciul de verificare a header-urilor HTTP ale serverului | ProHoster","description":"Pentru orice site, este esen\u021bial s\u0103 configura\u021bi corect header-urile HTTP. Au fost scrise multe articole pe tema header-urilor. Aici am sintetizat experien\u021ba acumulat\u0103 \u0219i documenta\u021bia RFC.","canonical_url":"https:\/\/prohoster.info\/ro\/blog\/administrirovanie\/servis-proverki-http-zagolovkov-servera","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"ro_RO","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0421\u0435\u0440\u0432\u0438\u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 | ProHoster","og:description":"\u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u0432\u0430\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438. \u041d\u0430 \u0442\u0435\u043c\u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u0435\u0439. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043e\u0431\u043e\u0431\u0449\u0438\u043b\u0438 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u044b\u0442, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e RFC.","og:url":"https:\/\/prohoster.info\/ro\/blog\/administrirovanie\/servis-proverki-http-zagolovkov-servera","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-05-28T23:41:57+00:00","article:modified_time":"2020-05-28T23:41:57+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"83142","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 10:20:32","updated":"2022-09-28 02:17:20","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/posts\/83142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/comments?post=83142"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/posts\/83142\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/media?parent=83142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/categories?post=83142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/tags?post=83142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}