전송 최적화: nginx gzip·이미지 lazy-load·캐시 연장

- nginx 텍스트 자산 gzip 압축 추가로 css/js/json/HTML 전송량 절감
- cardList 카드 이미지 lazy-load로 시리즈 진입 시 즉시 다운로드 방지
- 정적 이미지 캐시 7일→30일 연장
- 미사용 style/deck-history.css 삭제

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-03 14:52:18 +09:00
parent a90bdcbe13
commit af721d327d
10 changed files with 47 additions and 567 deletions

View File

@@ -1,5 +1,17 @@
# 업데이트 이력
## 2026-07-03 / v4.0.20 — 전송 최적화(gzip·lazy-load·캐시)
### 수행 작업
- nginx에 텍스트 자산 gzip 압축 추가(css/js/json/svg 등, `gzip_min_length 1024`, `comp_level 6`) — output.css·카드 데이터·HTML 전송량 약 70~80% 절감
- `cardList.html` 카드 그리드 이미지에 `loading="lazy" decoding="async"` 추가 — 시리즈 진입 시 전체(~90장) 즉시 다운로드 방지
- 정적 이미지 캐시 기간 `expires 7d → 30d`로 연장(내용 고정, immutable 유지)
- 미사용 `style/deck-history.css`(10.8KB) 삭제 (현재 어떤 화면도 참조하지 않음)
### 검증
- nginx 설정은 문법상 표준 디렉티브만 사용(배포 시 `nginx -t` 권장)
- `deck-history.css` 참조가 HTML/CSS/Dockerfile에 없음을 확인 후 삭제
## 2026-07-02 / v4.0.19 — 덱 목록 무한 스크롤·WebP 썸네일
### 수행 작업