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 완벽 가이드
221
7
장 캐시
The Definitive Guide
$
나이
= $
문서가
_
우리의
_
캐시에
_
도착했을
_
때의
_
나이
+
$
사본이
_
얼마나
_
오래
_
우리의
_
캐시에
_
있었는지
;
나왔다! 이것이 바로 예 7-1에서 보았던 완전한 HTTP/1.1 나이 계산 알고리즘이
다. 이것은 더하기 빼기만 하면 되는 수준의 간단한 문제다. 우리는 언제 문서가 캐
시에 도착했는지 알고 있고(
$
응답을_받은_시각
) 언제 현재 요청이 도착했는지도 안다
(바로 지금). 따라서 체류시간은 정확히 둘의 차와 같다. 그림 7-18에서 이 모든 것
을 보여주고 있다.
서버
캐시된 문서의 나이
요청한_시각
날짜_값
응답을_받은_시각
클라이언트가_요청한_시각
현재_시각
요청의
네트워크
지연 서버가 처리하는 시간
응답의
네트워크
지연
캐시에 체류한 시간
캐시
클라이언트
그림
7
-
18
캐시된 문서의 나이는 네트워크와 캐시에서의 체류 시간을 포함한다.
7.11.4
신선도 수명 계산
캐시된 문서가 클라이언트에게 제공해주기에 충분히 신선한지 알아내려 시도하고
있다는 것을 상기하라. 이 질문에 답하기 위해, 우리는 캐시된 문서의 나이를 알아
내고 서버와 클라이언트의 제약조건에 따라 신선도 수명을 계산해야 한다. 우리는
직전까지 나이를 어떻게 계산하는지 설명했다. 그럼 이제는 신선도 수명에 대해 이
야기해보자.
어떤 문서의 신선도 수명은 문서가 특정 ...
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