Skip to Content
HTTP 완벽 가이드
book

HTTP 완벽 가이드

by David Gourlry, Brian Totty, Lee Eung Jun, Sang -Il Jeong, Anshu Agarwal, Seilu Reddy, Marjorie Sayre
May 2022
Beginner to intermediate
756 pages
21h 30m
Korean
Insight
Content preview from HTTP 완벽 가이드
201
7
장 캐시
The Definitive Guide
7.7.8
캐시 처리 플로 차트
그림 7-12는 캐시가 어떻게 GET 요청을 처리하는지 간략한 형태로 보여준다.
12
요청이 도착했다
캐시되어 있는가?
충분히 신선한가?
재검사를
통과했는가?
서버에서
가져온다
캐시에
저장한다
클라이언트에게
제공한다
예
아니오
아니오 아니오
예
예
캐시된 문서의
신선도를 갱신한다
서버와 재검사한다
그림
7
-
12
캐시
GET
요청 플로 차트
7.8
사본을 신선하게 유지하기
캐시된 사본 모두가 서버의 문서와 항상 일치하는 것은 아니다. 결국 문서들은 시
간에 따라 변경된다. 보고서는 매달 바뀔 수 있다. 온라인 신문은 매일 바뀐다. 금융
자료는 매 초 변경될 수 있다. 오래된 데이터를 제공하는 캐시는 불필요하다. 캐시
된 데이터는 서버의 데이터와 일치하도록 관리되어야 한다.
HTTP는 어떤 캐시가 사본을 갖고 있는지 서버가 기억하지 않더라도, 캐시된 사
본이 서버와 충분히 일치하도록 유지할 수 있게 해주는 단순한 메커니즘을 갖고 있
다. HTTP는 이 단순한 메커니즘을 문서 만료와 서버 재검사라고 부른다.
7.8.1
문서 만료
HTTP는 Cache-Control과 Expires라는 특별한 헤더들을 이용해서 원 서버가 각 문
서에 유효기간을 붙일 수 있게 해준다(그림 7-13). 우유팩에 쓰여 있는 유효기간과
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

몽고DB 완벽 가이드(3판): 실전 예제로 배우는 NoSQL 데이터베이스 기초부터 활용까지

몽고DB 완벽 가이드(3판): 실전 예제로 배우는 NoSQL 데이터베이스 기초부터 활용까지

김인범, 크리스티나 초도로우, 섀넌 브래드쇼, 오언 브라질

Publisher Resources

ISBN: 9788966261208