Skip to Content
만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
book

만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술

by 한민주, 양찬석, 탈 아터
April 2019
Beginner to intermediate
368 pages
7h 18m
Korean
Hanbit Media, Inc.
Content preview from 만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
068 - 프로그레시브 웹 앱
caches
.
match
(
event
.
request
,
{
ignoreSearch
:
true
});
이렇게 되면, 쿼리 변수를 무시하고
request
URL
에 대한 엔트리와 매치됩니다
(
예.
/
promo
.
html
은 /
promo
.
html
?
utm
_
source
=
urchin
과 /
promo
.
html
?
utm
_
medium
=
social
모두 매치합니다).
3.7
HTTP 캐싱과 HTTP 헤더
CacheStorage
는 이전의
HTTP
캐시를 대체하지 않습니다.
서버가
1
년 동안 브라우저 캐시에 파일을 저장한다고 표기된
HTTP
헤더와 함께
파일을 제공하는 경우, 브라우저는 캐시에서 그 파일을 계속 제공합니다. 서비스
워커 내에서 파일을 가져온다면 네트워크로 가기 전에 브라우저 캐시를 여전히 체
크할 것입니다.
예를 들어보겠습니다. 서비스 워커가 설치되면
cache
.
addAll(
['/
main
.
css
']
)
가 호출됩니다. 이 파일은 네트워크로부터
fetch
되어
CacheStorage
에 저
장됩니다. 당신의 서버에서
Cache
-
Control
:
max
-
age
=
31536000
헤더를 사
용하여 파일을 제공하는 경우
(
이는 서버가 콘텐츠를
1
년 동안 캐시하는 방법입니다
)
,
CacheStorage
외에 브라우저 캐시에도 저장됩니다.
만약 당신이
main
.
css
를 일주일 후 ...
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

파이썬으로 웹 크롤러 만들기: 초간단 나만의 웹 크롤러로 원하는 데이터 가져오는 방법

파이썬으로 웹 크롤러 만들기: 초간단 나만의 웹 크롤러로 원하는 데이터 가져오는 방법

한선용, 라이언 미첼

Publisher Resources

ISBN: 9791162248737