Apache 구성

ESI 태그가 있는 페이지가 있는 경우 Apache 구성에 다음 속성을 선언해야 합니다.

<LocationMatch "/parent-pages/*content/page.html">
   # disable dispatcher compression
   SetEnv no-gzip 1
   # enable esi processing
   Header set x-aem-esi "on"
   # enable edgeCDN compression
   Header set x-aem-compress "on"

   # typically the main page is cached at the CDN
   Header always set Cache-Control "max-age=300"
 </LocationMatch>

<LocationMatch "/content/snippets/mysnippet.html">
  SetEnv no-gzip 1

  # typically the included page is either set to a lower TTL than the parent page, or not cached at all, as these 2 commented declarations show, respectively:
  #Header always set Cache-Control "no-cache"
  #Header always set Cache-Control "max-age=50"
 </LocationMatch>

구성된 속성에는 다음과 같은 동작이 있습니다.

속성비헤이비어
no-gzip1로 설정하면 HTML 페이지가 apache에서 CDN으로 압축되지 않은 상태로 전송됩니다. CDN이 ESI 태그를 보고 평가할 수 있도록 압축되지 않은 CDN으로 콘텐츠를 보내야 하기 때문에 ESI에 필요합니다.

상위 페이지와 포함된 코드 조각 모두 no-gzip을 1로 설정해야 합니다.

이 설정은 요청의 Accept-Encoding 값을 기준으로 Apache가 다른 방법으로 사용했을 수 있는 압축 설정을 무시합니다.
x-aem-esi"on"으로 설정하면 CDN이 상위 HTML 페이지의 ESI 태그를 평가합니다. 기본적으로 헤더는 설정되지 않습니다.
x-aem-compress"on"으로 설정하면 CDN이 CDN의 콘텐츠를 브라우저로 압축합니다. ESI가 작동하려면 Apache에서 CDN으로 상위 페이지 전송이 압축 해제되어야 하므로(no-gzip이(가) 1로 설정됨) 지연이 줄어들 수 있습니다.

이 헤더가 설정되지 않은 경우 CDN이 원본 콘텐츠를 압축되지 않은 상태로 검색하면 콘텐츠를 압축되지 않은 상태로 클라이언트에 제공합니다. 따라서 no-gzip이(가) 1로 설정되어 있고(ESI에 필요) CDN에서 압축된 콘텐츠를 브라우저에 제공하려는 경우 이 헤더를 설정해야 합니다.

Sling Dynamic 포함 항목

필요하지 않지만 Sling Dynamic Include​(SDI)을 사용하여 CDN에서 해석되는 ESI 스니펫을 생성할 수 있습니다.

자동으로 번역됨
언어 선택기를 사용하여 이 페이지의 영어 버전을 확인합니다.
번역이 유용했나요?

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.