You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
캐시 기본 동작
캐시 적용
캐시의 시간이 초과가 되었다면?
검증 헤더와 조건부 요청1
캐시의 시간이 초과가 되었을 때 2가지의 상황이 발생할 수 있다.
☑️ 서버에서 데이터를 변경하지 않았을 경우
1️⃣ 검증 헤더 추가
🐣 검증 헤더와 조건부 요청 정리
검증 헤더와 조건부 요청2
If-Modified-Since: 이후에 데이터가 수정되었을 경우
✅ Last-Modified, If-Modified-Since 단점
✅ ETag, If-None-Match
🐣 ETag, If-None-Match 정리
캐시와 조건부 요청 헤더
✅ Cache-Control - 캐시 지시어
✅ Pragma - 캐시 제어 (하위 호환)
✅ Expires - 캐시 만료일 지정 (하위 호환)
검증 헤더와 조건부 요청 헤더
프록시 캐시
Cache-Control - 캐시 지시어
캐시 무효화
Cache-Control - 확실한 캐시 무효화 응답
✅ Cache-Control (확실한 캐시 무효화)
🔗출처
All reactions