
모든 개발자를 위한 HTTP 웹 기본 지식 강의 수강 후, 정리한 글입니다.
1. Cache-Control: 캐시 제어
Cache-Control: max-ageCache-Control: no-cacheCache-Control: no-store2. Pragma: 캐시 제어(하위 호환)
Pragma: no-cache3. Expires: 캐시 유효 기간(하위 호환)
expires: Mon, 08 Jan 2024 00:00:00 GMTCache-Control: max-age 권장Cache-Control: max-age와 함께 사용하면 Expires는 무시한국에 있는 클라이언트가 미국에 있는 원(origin) 서버에 접근하려면 500ms(0.5초)가 걸린다. 프록시 캐시 서버는 이 둘 사이에 위치하여 캐시된 데이터를 빠르게 가져올 수 있다.
최초 요청 시에는 다운로드 속도가 느리지만, 이후 요청부터는 빠르다.
CDN과 다르긴 하지만, 비슷한 역할을 하는 것 같다.

Cache-Control: publicCache-Control: privateCache-Control: s-maxageAge: 60Cache-Control: no-cacheCache-Control: no-storeCache-Control: must-revalidatePragma: no-cache

