Welcome! Log In Create A New Profile

Advanced

Только css и manifest не отдают charset

May 15, 2021 12:56PM
В секции http добавляю charset utf-8

Описываю ресурсы

location ~* \.(?:css|js|json|txt)$ {
etag on;
add_header Cache-Control "public, max-age=31536000, immutable";
}

location ~* \.(?:manifest|webmanifest)$ {
etag on;
add_header Cache-Control "public, max-age=31536000, immutable";
}

location ~* \.(?:css|js|json|txt)$ {
etag on;
expires max;
add_header Cache-Control "public, max-age=31536000, immutable";
}

все ресурсы (html, js) отдаются с заголовком content-type: ...; charset=utf-8, а css и manifest отдаются без него

Почему? как исправить?
Subject Author Posted

Только css и manifest не отдают charset

budarin May 15, 2021 12:56PM

Re: Только css и manifest не отдают charset

budarin May 16, 2021 08:45AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 256
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready