fix: заменить cache-busting через query на Cache-Control заголовок (#6)
fix: заменить cache-busting через query на Cache-Control заголовок - Убран query-параметр ?v= из ссылки на ARCHITECTURE.md - Добавлен заголовок Cache-Control: no-cache для ARCHITECTURE.md в Caddyfile Reviewed-on: #6 Co-authored-by: S.Gromov <zz-gromov@ya.ru> Co-committed-by: S.Gromov <zz-gromov@ya.ru>
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
header @plainText Content-Type "text/plain; charset=utf-8"
|
header @plainText Content-Type "text/plain; charset=utf-8"
|
||||||
@markdown path /ARCHITECTURE.md
|
@markdown path /ARCHITECTURE.md
|
||||||
header @markdown Content-Type "text/markdown; charset=utf-8"
|
header @markdown Content-Type "text/markdown; charset=utf-8"
|
||||||
|
header @markdown Cache-Control "no-cache, no-store, must-revalidate"
|
||||||
file_server
|
file_server
|
||||||
header Link "</llms.txt>; rel=\"llms\""
|
header Link "</llms.txt>; rel=\"llms\""
|
||||||
try_files {path} {path}.html {path}/index.html /index.html
|
try_files {path} {path}.html {path}/index.html /index.html
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
const version = __BUILD_VERSION__
|
|
||||||
|
|
||||||
export const repositoryUrl = 'https://gromlab.ru/gromov/slm-design'
|
export const repositoryUrl = 'https://gromlab.ru/gromov/slm-design'
|
||||||
|
|
||||||
export const homeCards = [
|
export const homeCards = [
|
||||||
@@ -12,7 +10,7 @@ export const homeCards = [
|
|||||||
{
|
{
|
||||||
title: 'ARCHITECTURE.md',
|
title: 'ARCHITECTURE.md',
|
||||||
description: 'Полная версия архитектуры в одном файле',
|
description: 'Полная версия архитектуры в одном файле',
|
||||||
href: `/ARCHITECTURE.md?v=${version}`,
|
href: '/ARCHITECTURE.md',
|
||||||
cta: 'Открыть →',
|
cta: 'Открыть →',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user