From ee5b947fb040374b598c1c005735710d17c999f7 Mon Sep 17 00:00:00 2001 From: "S.Gromov" Date: Fri, 1 May 2026 21:42:36 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20cache-busting=20=D1=87=D0=B5=D1=80=D0=B5=D0=B7?= =?UTF-8?q?=20query=20=D0=BD=D0=B0=20Cache-Control=20=D0=B7=D0=B0=D0=B3?= =?UTF-8?q?=D0=BE=D0=BB=D0=BE=D0=B2=D0=BE=D0=BA=20(#6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: заменить cache-busting через query на Cache-Control заголовок - Убран query-параметр ?v= из ссылки на ARCHITECTURE.md - Добавлен заголовок Cache-Control: no-cache для ARCHITECTURE.md в Caddyfile Reviewed-on: https://gromlab.ru/gromov/slm-design/pulls/6 Co-authored-by: S.Gromov Co-committed-by: S.Gromov --- Caddyfile | 1 + src/screens/home/config/home-screen.config.ts | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Caddyfile b/Caddyfile index 0780098..67fe031 100644 --- a/Caddyfile +++ b/Caddyfile @@ -4,6 +4,7 @@ header @plainText Content-Type "text/plain; charset=utf-8" @markdown path /ARCHITECTURE.md header @markdown Content-Type "text/markdown; charset=utf-8" + header @markdown Cache-Control "no-cache, no-store, must-revalidate" file_server header Link "; rel=\"llms\"" try_files {path} {path}.html {path}/index.html /index.html diff --git a/src/screens/home/config/home-screen.config.ts b/src/screens/home/config/home-screen.config.ts index 44efcac..d2684cf 100644 --- a/src/screens/home/config/home-screen.config.ts +++ b/src/screens/home/config/home-screen.config.ts @@ -1,5 +1,3 @@ -const version = __BUILD_VERSION__ - export const repositoryUrl = 'https://gromlab.ru/gromov/slm-design' export const homeCards = [ @@ -12,7 +10,7 @@ export const homeCards = [ { title: 'ARCHITECTURE.md', description: 'Полная версия архитектуры в одном файле', - href: `/ARCHITECTURE.md?v=${version}`, + href: '/ARCHITECTURE.md', cta: 'Открыть →', }, {