tool::http-status-detail
304 Not Modified
The cached version is still valid; no new content to return.
상태 코드
304
이름
Not Modified
카테고리
3xx상세 설명
HTTP 304 Not Modified는 클라이언트의 캐시된 버전이 여전히 유효함을 나타냅니다. 조건부 요청(If-None-Match 또는 If-Modified-Since)에 대한 응답으로, 서버는 리소스가 변경되지 않았다면 본문 없이 304를 반환합니다. 네트워크 대역폭을 절약하고 페이지 로딩 속도를 크게 향상시킵니다.
주요 원인
- ▸브라우저가 캐시된 리소스의 유효성을 확인하는 조건부 GET 요청
- ▸ETag 또는 Last-Modified 기반 캐시 검증에서 리소스가 변경되지 않은 경우
- ▸CDN이 원본 서버에 콘텐츠 변경 여부를 확인하는 경우
- ▸API 클라이언트가 폴링 방식으로 변경 사항을 확인하는 경우
해결 방법
- 1.304는 정상 동작이므로 수정이 필요하지 않습니다
- 2.최신 버전을 강제로 가져오려면 Ctrl+Shift+R (하드 리프레시)을 사용하세요
- 3.Cache-Control: no-cache 헤더로 항상 서버에 검증을 요청할 수 있습니다
- 4.개발 중 캐시 문제라면 브라우저 개발자 도구에서 캐시 비활성화를 설정하세요
관련 HTTP 헤더
ETagLast-ModifiedCache-ControlExpires응답 예시
HTTP/1.1 304 Not Modified ETag: "abc123" Cache-Control: max-age=3600
관련 상태 코드
300Multiple ChoicesMultiple options for the requested resource.→301Moved PermanentlyThe resource has permanently moved to a new URL.→302FoundThe resource is temporarily at a different URL.→303See OtherRedirect to another resource using GET.→307Temporary RedirectTemporary redirect preserving the original HTTP method.→
ad · 300×250
// related tools