浏览器标头查询_HTTP标头检查器

浏览器标头查询

automatically check the HTTP headers of the web server. 自动检查Web服务器的HTTP标头

Correct HTTP headers increase security and trust in the site, including from search engines, can affect the site’s position in Yandex and Google, save server resources, reduce server load, thereby increasing the server response speed, which again affects the ranking of the site in the search, save money on payment powerful hosting, which may not be required for the site when configured correctly.

正确的HTTP标头可以提高网站的安全性和信任度,包括来自搜索引擎的信任度,可以影响网站在Yandex和Google中的位置,节省服务器资源,减少服务器负载,从而提高服务器响应速度,从而再次影响网站的排名。通过搜索,可以在强大的付款托管服务上省钱,如果配置正确,则可能不需要该网站。

Check not only web-page headers, but also headers of static content, images, css and js files. Check separately If-Modified-Since and If-None-Match for correct your web server reply 304 Not Modified.

不仅检查网页标题,还检查静态内容,图像,css和js文件的标题。 分别检查If-Modified-Since和If-None-Match是否正确,以使您的Web服务器回复304未修改。

Unlike many other services that simply show headers, our headers checker allows:

与许多其他仅显示标题的服务不同,我们的标题检查器允许:

  1. get total score of web-server settings quality and advices what possible to improve;

    获得Web服务器设置质量的总分,并提出可以改进的建议;
  2. set the value of typical headers;

    设置典型标题的值;
  3. add your own custom headers;

    添加您自己的自定义标题;
  4. specify the version of the HTTP protocol: 1.0, 1.1, 2 (checks if HTTP / 2 is supported);

    指定HTTP协议的版本:1.0、1.1、2(检查是否支持HTTP / 2);
  5. specify the request method, timeout, and post data to send to the server;

    指定请求方法,超时和发布数据以发送到服务器;
  6. the service also checks if the response to the If-Modified-Since, If-None-Match requests is correct if the server response contains Last-Modified or ETag;

    如果服务器响应包含Last-Modified或ETag,则该服务还检查对If-Modified-Since,If-None-Match请求的响应是否正确;
  7. see HTTP-request data and other request params.

    请参阅HTTP请求数据和其他请求参数。

We do not claim to be the ultimate truth. For individual content and for individual projects, of course, there may be deviations. But this service will definitely tell you what you should pay attention to, it may be useful for you to edit your headers. The following is a list of what the verification service pays attention to. Why so, read in articles on a habr.

我们并不声称这是最终的真理。 当然,对于单个内容和单个项目,可能会有偏差。 但是,此服务肯定会告诉您应注意的事项,它可能对您编辑标题有用。 以下是验证服务需要注意的列表。 为什么这样,请阅读有关habr的文章

强制标题 (Mandatory headers)

  • Date

    日期
  • Content-Type specifying charset for text content preferably utf-8

    为文本内容指定字符集的Content-Type,最好是utf-8
  • Content-Encoding compression for text content

    文本内容的内容编码压缩

标头过时和不必要 (Obsolete and unnecessary headers)

  • Server with a detailed version of the web server

    具有Web服务器详细版本的服务器
  • X-Power-By

    X电源
  • X_ASPNET-Version

    X_ASPNET版本
  • Expires

    过期
  • Pragma

    语用
  • P3P

    P3P
  • Via

    通过
  • X-UA-Compatible

    兼容X-UA

所需的安全标头 (Desired headers for security)

  • X-Content-Type-Options

    X内容类型选项
  • X-XSS-Protection

    X-XSS保护
  • Strict-Transport-Security

    严格的运输安全
  • Referrer-Policy

    推荐人政策
  • Feature-Policy

    功能政策
  • Content-Security-Policy or Content-Security-Policy-Report-Only to disable inline scripts and styles.

    Content-Security-Policy或Content-Security-Policy-Report-Only可禁用内联脚本和样式。

缓存头 (Caching headers)

Required for static content with a long cache term and highly desirable for dynamic content with a short cache term.

对于具有长缓存期限的静态内容是必需的,对于具有短缓存期限的动态内容是高度期望的。

  • Last-Modified

    最后修改
  • ETag

    标签
  • Cache-Control

    缓存控制
  • Vary

    变化
  • Важно, чтобы сервер корректно отвечал на заголовки: If-Modified-Since и If-None-Match

    Важно,чтобысерверкорректноотвечалназаголовки:If-Modified-Since和If-None-Match

HTTP / 2 (HTTP/2)

Nowadays the server must support HTTP/2. By default, the service checks the server for HTTP/2. If your server does not support HTTP/2, then select HTTP/1.1.

如今,服务器必须支持HTTP / 2。 默认情况下,该服务检查服务器的HTTP / 2。 如果您的服务器不支持HTTP / 2,则选择HTTP / 1.1。

翻译自: https://habr.com/en/post/504990/

浏览器标头查询

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值