fix: Avoid http-equiv <meta> tags

HTTP headers are more efficient than the http-equiv meta tags.
The <meta http-equiv=/> tags

The http-equiv meta tags allow to communicate to the web browser information equivalent to the ones of HTTP headers. For example, the meta <meta http-equiv=content-type/> will have the same consequences than the HTTP Content-Type header.

Two points don’t stimulate the use of http-equiv meta tags:

    Going through the meta requires to interpret the beginning of the HTML page, which is slower than going through the HTTP headers in terms of performance
    If the HTTP header is already present, the meta is ignored

In which cases are the <meta http-equiv=/> useful?

Only one case can justify the presence of these meta tags: if you don’t have access to the configuration of your server, and that is to say to the HTTP headers.

However, we advice you to use a configurable server so that you can establish the most efficient site possible.

This page contains 1 http-equiv meta tag. If possible, you should replace it:

    x-ua-compatible
This commit is contained in:
Simon 2020-03-11 16:53:51 +01:00
parent d18cf92c2c
commit 6b2d95f245
2 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,8 @@ server {
# https://www.cyberciti.biz/faq/nginx-set-http-content-type-response-header-to-charset-utf8/
charset UTF-8;
add_header X-UA-Compatible "IE=Edge,chrome=1";
#Caching (save html pages for 7 days, rest as long as possible, no caching on frontpage)
expires $expires;

@ -1 +1 @@
Subproject commit f4c5d9f12282695344134bd3ffd064ca4d1e1fe1
Subproject commit 8da32f8afd91ef803551fdf592f2d3efc70773c6