Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
1
  • Loading branch information
javaliv2 committed Oct 20, 2022
1 parent 9e6b2c1 commit b941bcf
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
31 changes: 31 additions & 0 deletions admin/origin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ Range요청



.. _origin-fullrangeinit:

전체 Range 초기화
====================================
Expand Down Expand Up @@ -490,6 +491,8 @@ Range요청을 사용하면 모듈을 우회하여 원본을 다운로드할 수
최초로 파일 Caching할 때는 컨텐츠의 Range를 알지 못하므로 Full-Range(=0부터 시작하는)를 요청한다.
원본서버가 Range요청에 대해 정상적으로 응답(206 OK)하는지 반드시 확인해야 한다.

- ``HEAD`` :ref:`origin-fullrangeinit-head`

콘텐츠를 갱신할 때는 다음과 같이 **If-Modified-Since** 헤더가 같이 명시된다.
원본서버가 올바르게 **304 Not Modified** 로 응답해야 한다. ::

Expand All @@ -507,6 +510,34 @@ Range요청을 사용하면 모듈을 우회하여 원본을 다운로드할 수
- Apache/2.2.22


.. _origin-fullrangeinit-head:

``HEAD`` 메소드 초기화
------------------------

원본서버가 ``Range`` 가 아닌 ``GET`` 메소드를 처리하지 못하는 경우 ``HEAD`` 메소드를 이용하여 캐싱객체를 초기화할 수 있다. ::

# server.xml - <Server><VHostDefault><OriginOptions>
# vhosts.xml - <Vhosts><Vhost><OriginOptions>

<FullRangeInit>HEAD</FullRangeInit>


위와 같이 설정하면 객체 캐싱과 갱신과정에 ``HEAD`` 메소드가 사용된다. ::


# 최초 요청
... HEAD ... /sample.mp3 ... 200 ...
... GET ... /sample.mp3 ... 206 ...

# Expire 후 요청
... HEAD ... /sample.mp3 ... 304 ...

# Purge 후 요청
... HEAD ... /sample.mp3 ... 200 ...
... GET ... /sample.mp3 ... 206 ...


.. _origin-wholeclientrequest:

클라이언트 요청 유지
Expand Down
10 changes: 10 additions & 0 deletions admin/releasenote.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ Appendix E: 릴리스 노트
v2.7.x
====================================

.. _release-cdn-2-7-40:

2.7.40 (2022.10.20)
----------------------------

- 캐싱객체 :ref:`origin-fullrangeinit-head` 지원
- DNS resolving 시스템 콜이 잠길 때 원본서버 IP목록이 갱신되지 않던 문제 수정



.. _release-cdn-2-7-39:

2.7.39 (2022.09.15)
Expand Down
2 changes: 1 addition & 1 deletion index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ STON Edge Server 완벽 가이드


:저자: STON 개발팀
:최신버전: v2.7.39
:최신버전: v2.7.40


1부. STON 기본: 설정 배우기
Expand Down

0 comments on commit b941bcf

Please sign in to comment.