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

Pragmaを無効にする: no-cache ヘッダ

written-by

Dávid Hegedüs

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

問題

  • Liferay が応答ヘッダに「Pragma: no-cache」を追加すると、アプリ サーバまたはクライアントがデータをキャッシュできなくなります。

環境

  • Liferay DXP 7.2

解決

  • portal-ext.properties ファイルで browser.cache.disabled プロパティを false に設定します

追加情報

  • browser.cache.disabled のデフォルトの動作は LPS-74452で変更されました。これは、キャッシュ制御ヘッダーが欠落している場合、常にコンテンツをキャッシュすることを好むアグレッシブ・キャッシング・プロキシで問題が発生する可能性があるためです。
  • browser.cache.signed.in.disabled もデフォルトで true に設定されているため、ログイン中ユーザーは引き続きキャッシュ無効化ヘッダーを取得することに注意してください。
  • 2 つのプロパティの詳細については、 Browser Cache セクションを参照してください。
did-this-article-resolve-your-issue

legacy-knowledge-base