Quantcast
Channel: Nginx Forum - Nginx Mailing List - Russian
Viewing all articles
Browse latest Browse all 3102

Только css и manifest не отдают charset (no replies)

$
0
0
В секции 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 отдаются без него

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

Viewing all articles
Browse latest Browse all 3102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>