웹 서비스 성능을 최적화하고 CDN 캐시 오작동을 방지하기 위한 헤더 설정 규칙이 필요할 때 사용합니다.
# HTTP Caching taste of a web developer who wants fast pages without stale surprises - Decide the caching policy for every response on purpose; a missing `Cache-Control` header lets browsers and proxies guess. Confidence: 0.90 - Serve fingerprinted static assets with `Cache-Control: public, max-age=31536000, immutable`. Confidence: 0.95 - Put a content hash in asset file names instead of using query strings like `?v=2` for cache busting. Confidence: 0.85 - Send HTML documents with `no-cache` or a very short max-age so new deploys show up right away. Confidence: 0.85 - Use `private, no-store` for responses with personal or sensitive data, and never let a shared cache hold them. Confidence: 0.95 - Use `s-maxage` to give the CDN a different lifetime than the browser when the CDN can be purged and the browser cannot. Confidence: 0.80 - Add `stale-while-revalidate` for content that can be a few seconds old, so users rarely wait for the origin. Confidence: 0.80 - Use `stale-if-error` so the CDN keeps serving the last good copy when the origin is down. Confidence: 0.70 - Send strong `ETag` or `Last-Modified` validators so revalidation returns a cheap `304 Not Modified`. Confidence: 0.80 - Keep the `Vary` header minimal; varying on `User-Agent` or `Cookie` quietly destroys the CDN hit rate. Confidence: 0.85 - Never cache responses that set cookies at a shared cache. Confidence: 0.90 - Purge the CDN by tag or surrogate key after content changes instead of purging everything. Confidence: 0.75 - Cache API GET responses only when the data is truly shared, and say so explicitly in the response headers. Confidence: 0.80 - Do not cache error responses for long; a cached 500 or 404 can outlive the real problem. Confidence: 0.80 - Rely on HTTP caching headers instead of a service worker unless the app truly needs offline support. Confidence: 0.70 - Watch the CDN cache hit ratio as a key metric, and investigate when it drops after a deploy. Confidence: 0.75 - Test caching behavior with `curl -I` against the real CDN, not only in local development. Confidence: 0.80 - Document the cache rules per route in one place so nobody has to read headers in the browser to learn them. Confidence: 0.65 - Keep `Cache-Control` decisions in application code or edge config under version control, not only in a dashboard. Confidence: 0.75 - Prefer short cache times plus revalidation over long cache times plus emergency purges. Confidence: 0.70
# 오래된 콘텐츠 문제 없이 빠른 페이지를 원하는 웹 개발자의 HTTP 캐싱 취향 - 모든 응답의 캐싱 정책을 의도적으로 결정하세요. `Cache-Control` 헤더가 없으면 브라우저와 프록시가 임의로 추측합니다. 신뢰도: 0.90 - 핑거프린트가 적용된 정적 자산은 `Cache-Control: public, max-age=31536000, immutable`로 제공하세요. 신뢰도: 0.95 - 캐시 무효화를 위해 `?v=2` 같은 쿼리 스트링을 사용하는 대신 자산 파일 이름에 콘텐츠 해시를 넣으세요. 신뢰도: 0.85 - 새 배포가 즉시 반영되도록 HTML 문서는 `no-cache` 또는 매우 짧은 max-age로 전송하세요. 신뢰도: 0.85 - 개인 정보나 민감한 데이터가 포함된 응답에는 `private, no-store`를 사용하고, 공유 캐시에 절대 저장되지 않도록 하세요. 신뢰도: 0.95 - CDN은 퍼지(purge)가 가능하고 브라우저는 불가능할 때 `s-maxage`를 사용해 CDN에 브라우저와 다른 수명을 부여하세요. 신뢰도: 0.80 - 몇 초 전 데이터여도 괜찮은 콘텐츠에는 `stale-while-revalidate`를 추가하여 사용자가 오리진을 기다리는 일을 줄이세요. 신뢰도: 0.80 - 오리진 서버가 다운되었을 때 CDN이 마지막 정상 복사본을 계속 제공할 수 있도록 `stale-if-error`를 사용하세요. 신뢰도: 0.70 - 재검증 시 저렴한 `304 Not Modified`를 반환하도록 강력한 `ETag` 또는 `Last-Modified` 검증자를 보내세요. 신뢰도: 0.80 - `Vary` 헤더를 최소한으로 유지하세요. `User-Agent`나 `Cookie`에 따라 다르게 설정하면 CDN 히트율이 조용히 파괴됩니다. 신뢰도: 0.85 - 쿠키를 설정하는 응답은 공유 캐시에 절대 캐싱하지 마세요. 신뢰도: 0.90 - 콘텐츠 변경 후 전체를 퍼지하는 대신 태그나 서러게이트 키(surrogate key)로 CDN을 퍼지하세요. 신뢰도: 0.75 - API GET 응답은 데이터가 진정으로 공유될 때만 캐싱하고, 응답 헤더에 이를 명시적으로 나타내세요. 신뢰도: 0.80 - 오류 응답을 오래 캐싱하지 마세요. 캐싱된 500이나 404 오류가 실제 문제보다 오래 지속될 수 있습니다. 신뢰도: 0.80 - 앱에 오프라인 지원이 진정으로 필요한 경우가 아니라면 서비스 워커 대신 HTTP 캐싱 헤더에 의존하세요. 신뢰도: 0.70 - CDN 캐시 히트율을 핵심 지표로 주시하고, 배포 후 히트율이 떨어지면 조사하세요. 신뢰도: 0.75 - 로컬 개발 환경뿐만 아니라 실제 CDN을 대상으로 `curl -I`를 사용해 캐싱 동작을 테스트하세요. 신뢰도: 0.80 - 브라우저에서 헤더를 읽지 않고도 알 수 있도록 경로별 캐시 규칙을 한 곳에 문서화하세요. 신뢰도: 0.65 - 대시보드뿐만 아니라 형상 관리 하의 애플리케이션 코드나 에지 설정에 `Cache-Control` 결정을 유지하세요. 신뢰도: 0.75 - 긴 캐시 시간과 비상 퍼지보다 짧은 캐시 시간과 재검증을 선호하세요. 신뢰도: 0.70
출처 · prompts.chat · HTTP Caching taste — 원문은 출처에 게시된 그대로이며, 권리는 원작자에게 있습니다.
Gemini로 프롬프트를 실행해 생성한 화면입니다. 화면 안에서 직접 조작하실 수 있습니다.
웹 성능 최적화를 위한 HTTP 캐싱 전략과 CDN 네트워크 처리 흐름을 실시간 애니메이션 및 시뮬레이션으로 확인할 수 있는 TPI 웹 성능 아키텍처 대시보드입니다. 라우트별 캐시 헤더(Cache-Control, ETag 등) 설정에 따라 브라우저, CDN 엣지, 오리진 서버 간 데이터 패킷 흐름과 반응 속도를 즉각 시각화하며, 20가지 HTTP 캐싱 핵심 수칙 모니터링을 제공합니다.
Gemini로 실행한 결과입니다. 입력 항목에는 국내 환경의 예시값을 적용했습니다(AI 생성 — 사실 확인 필요).
# HTTP Caching taste of a web developer who wants fast pages without stale surprises - Decide the caching policy for every response on purpose; a missing `Cache-Control` header lets browsers and proxies guess. Confidence: 0.90 - Serve fingerprinted static assets with `Cache-Control: public, max-age=31536000, immutable`. Confidence: 0.95 - Put a content hash in asset file names instead of using query strings like `?v=2` for cache busting. Confidence: 0.85 - Send HTML documents with `no-cache` or a very short max-age so new deploys show up right away. Confidence: 0.85 - Use `private, no-store` for responses with personal or sensitive data, and never let a shared cache hold them. Confidence: 0.95 - Use `s-maxage` to give the CDN a different lifetime than the browser when the CDN can be purged and the browser cannot. Confidence: 0.80 - Add `stale-while-revalidate` for content that can be a few seconds old, so users rarely wait for the origin. Confidence: 0.80 - Use `stale-if-error` so the CDN keeps serving the last good copy when the origin is down. Confidence: 0.70 - Send strong `ETag` or `Last-Modified` validators so revalidation returns a cheap `304 Not Modified`. Confidence: 0.80 - Keep the `Vary` header minimal; varying on `User-Agent` or `Cookie` quietly destroys the CDN hit rate. Confidence: 0.85 - Never cache responses that set cookies at a shared cache. Confidence: 0.90 - Purge the CDN by tag or surrogate key after content changes instead of purging everything. Confidence: 0.75 - Cache API GET responses only when the data is truly shared, and say so explicitly in the response headers. Confidence: 0.80 - Do not cache error responses for long; a cached 500 or 404 can outlive the real problem. Confidence: 0.80 - Rely on HTTP caching headers instead of a service worker unless the app truly needs offline support. Confidence: 0.70 - Watch the CDN cache hit ratio as a key metric, and investigate when it drops after a deploy. Confidence: 0.75 - Test caching behavior with `curl -I` against the real CDN, not only in local development. Confidence: 0.80 - Document the cache rules per route in one place so nobody has to read headers in the browser to learn them. Confidence: 0.65 - Keep `Cache-Control` decisions in application code or edge config under version control, not only in a dashboard. Confidence: 0.75 - Prefer short cache times plus revalidation over long cache times plus emergency purges. Confidence: 0.70
웹 성능 최적화를 위한 HTTP 캐싱 전략과 CDN 네트워크 처리 흐름을 실시간 애니메이션 및 시뮬레이션으로 확인할 수 있는 mopick 웹 성능 아키텍처 대시보드입니다. 라우트별 캐시 헤더(Cache-Control, ETag 등) 설정에 따라 브라우저, CDN 엣지, 오리진 서버 간 데이터 패킷 흐름과 반응 속도를 즉각 시각화하며, 20가지 HTTP 캐싱 핵심 수칙 모니터링을 제공합니다.
mopick 개선안
원문을 그대로 넣으면 AI 가 매번 다르게 답하거나 중요한 부분을 빠뜨릴 수 있습니다. 개선안은 원문의 뜻과 언어는 그대로 두고 역할 · 바꿔 넣을 입력 칸 · 결과 형식 · 지킬 조건을 보완해 다시 쓴 버전입니다. 원문과 같은 곳(ChatGPT · Claude 등)에 그대로 붙여 넣어 쓰면 됩니다.
AI 자체 평가 — 개선안을 쓴 AI 가 명확성 · 구체성 · 결과 형식 · 재사용성 기준(100점)으로 직접 매긴 점수 · 결과를 돌려 검증한 값은 아님
AI 역할레슨 01 배우기 ›
원문 · 없음AI 에게 맡길 역할이 정해져 있지 않아 답의 관점 · 수준이 그때그때 달라질 수 있었습니다.
개선 · 역할을 정함Act as an expert Web Performance Architect. Your task is to design an optimal HTTP caching
입력 칸레슨 05 배우기 ›
원문 · 없음바꿔 넣을 자리가 표시돼 있지 않아 쓸 때마다 원문을 직접 고쳐야 했습니다.
개선 · 1개[INPUT_ROUTE_OR_ASSET]
작업 순서레슨 07 배우기 ›
원문 · 없음작업 순서가 정해져 있지 않아 AI 가 순서를 스스로 정해야 했습니다.
개선 · 3단계
이 개선안에 쓰인 기법 — 프롬프트 클래스에서 배우기
01역할 정하기02맥락 · 목적 알려 주기03결과 모양 정하기05입력 칸으로 템플릿 만들기07작업을 단계로 나누기08스스로 검토하게 하기
원문
# HTTP Caching taste of a web developer who wants fast pages without stale surprises - Decide the caching policy for every response on purpose; a missing `Cache-Control` header lets browsers and proxies guess. Confidence: 0.90 - Serve fingerprinted static assets with `Cache-Control: public, max-age=31536000, immutable`. Confidence: 0.95 - Put a content hash in asset file names instead of using query strings like `?v=2` for cache busting. Confidence: 0.85 - Send HTML documents with `no-cache` or a very short max-age so new deploys show up right away. Confidence: 0.85 - Use `private, no-store` for responses with personal or sensitive data, and never let a shared cache hold them. Confidence: 0.95 - Use `s-maxage` to give the CDN a different lifetime than the browser when the CDN can be purged and the browser cannot. Confidence: 0.80 - Add `stale-while-revalidate` for content that can be a few seconds old, so users rarely wait for the origin. Confidence: 0.80 - Use `stale-if-error` so the CDN keeps serving the last good copy when the origin is down. Confidence: 0.70 - Send strong `ETag` or `Last-Modified` validators so revalidation returns a cheap `304 Not Modified`. Confidence: 0.80 - Keep the `Vary` header minimal; varying on `User-Agent` or `Cookie` quietly destroys the CDN hit rate. Confidence: 0.85 - Never cache responses that set cookies at a shared cache. Confidence: 0.90 - Purge the CDN by tag or surrogate key after content changes instead of purging everything. Confidence: 0.75 - Cache API GET responses only when the data is truly shared, and say so explicitly in the response headers. Confidence: 0.80 - Do not cache error responses for long; a cached 500 or 404 can outlive the real problem. Confidence: 0.80 - Rely on HTTP caching headers instead of a service worker unless the app truly needs offline support. Confidence: 0.70 - Watch the CDN cache hit ratio as a key metric, and investigate when it drops after a deploy. Confidence: 0.75 - Test caching behavior with `curl -I` against the real CDN, not only in local development. Confidence: 0.80 - Document the cache rules per route in one place so nobody has to read headers in the browser to learn them. Confidence: 0.65 - Keep `Cache-Control` decisions in application code or edge config under version control, not only in a dashboard. Confidence: 0.75 - Prefer short cache times plus revalidation over long cache times plus emergency purges. Confidence: 0.70
개선안 · 색칠한 [칸]에 내 내용을 넣어 쓰세요
Act as an expert Web Performance Architect. Your task is to design an optimal HTTP caching strategy for the following web application route or asset type: [INPUT_ROUTE_OR_ASSET]. Apply these HTTP Caching Guidelines: - Explicit Policy: Assign purposeful `Cache-Control` to every response. - Fingerprinted Assets: Serve hashed static files with `public, max-age=31536000, immutable`. Do not use query string cache busting like `?v=2`. - Dynamic/HTML Documents: Use `no-cache` or a very short `max-age` for instant deploy visibility. - Sensitive Data: Use `private, no-store` for personalized data; never cache cookie-setting responses in shared caches. - CDN Optimization: Use `s-maxage`, `stale-while-revalidate`, and `stale-if-error`. Keep `Vary` minimal (avoid `User-Agent` or `Cookie`). - Validation & Invalidation: Provide strong `ETag` or `Last-Modified` headers. Prefer surrogate key/tag purging over full CDN purges. - APIs & Errors: Cache API GETs only when data is truly shared. Never cache 4xx/500 errors for long. - Architecture: Prefer short cache + revalidation over long cache + emergency purges. Avoid Service Workers unless offline support is explicitly requested. Output Structure: 1. **Recommended Headers**: Exact header key-value pairs for browser & CDN. 2. **Invalidation Strategy**: How to handle deploys and updates. 3. **Validation Command**: A `curl -I` command to verify the setup against the CDN.