legacy-knowledge-base
公開されました Sep. 10, 2025

ETAG 応答ヘッダーがありません

written-by

József Géczi

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • ページに ETAG 応答ヘッダーがありません。

Environment

  • DXP 7.1

解決策

ページ に少なくとも 1 つのキャッシュ不可のポートレット(Asset Publisher など) が含まれている場合、設計上、ETAG 応答ヘッダーは追加されません。

ポートレットがキャッシュ可能かどうかの条件は、 com.liferay.portlet.layout-cacheable プロパティによって決定されます。
たとえば、プロパティはデフォルトで true に設定され、 JournalContentPortlet (UI では Web コンテンツ表示と呼ばれます) および HelloWorldPortletに設定されますが、定義されていないため、によって設定されます。デフォルトは false - AssetPublisherPortletの場合。

ページ上のキャッシュ不可のポートレット は、ETAG ヘッダー を応答に追加できません。

did-this-article-resolve-your-issue

legacy-knowledge-base