feat: help content sync/#652 - #653
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
작업 내용
GET /help-contents/{key}API에서 조회하도록 연결했습니다.userData/help-contents.json에 본문과 ETag를 저장하고, 다음 실행부터If-None-Match로 변경 여부만 확인합니다.변경 이유
경험치, 쿠키, 랭킹 보상처럼 운영 중 변경될 수 있는 안내 문구가 클라이언트 코드에 고정되어 있어 서버 정책과 실제 안내가 달라질 수 있었습니다. 문구의 배포 주기를 서버와 분리하면서도, 매 실행마다 전체 본문을 다시 받지 않도록 ETag 캐시를 적용했습니다.
검증
pnpm --filter @clash/mac typecheckpnpm --filter @clash/mac lintpnpm --filter @clash/mac build