diff --git a/files/angie/lb1.guaranteedstruggle.host.conf b/files/angie/lb1.guaranteedstruggle.host.conf index 3aac9b7..96cee44 100644 --- a/files/angie/lb1.guaranteedstruggle.host.conf +++ b/files/angie/lb1.guaranteedstruggle.host.conf @@ -482,6 +482,16 @@ server { # Принудительно разрешаем прокидывать оригинальные заголовки типов от бэкенда - proxy_pass_header Content-Type; + #proxy_pass_header Content-Type; + + + # Заставляем Angie прозрачно прокидывать сессионные куки из HTTP в HTTPS + proxy_cookie_path / "/; Secure; SameSite=Lax"; + + #=================================================================== + # СБРОС КЭША: Запрещаем браузеру запоминать "битые" HTML вместо JS + #=================================================================== + add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0"; + expires off; } } \ No newline at end of file