Legacy Knowledge Base
公開されました Jul. 2, 2025

Documents and MediaにアップロードされたドキュメントをMy CDNでキャッシュすることができない。

Written By

Laura Li

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • Documents and MediaにアップロードされたドキュメントをMy CDNでキャッシュすることができない。

環境

  • Liferay DXP 7.0、Liferay DXP 7.1

解決策

  • LPS-27419 で実装されたすべてのドキュメントおよびメディアファイルのCache-Controlヘッダーをプライベートにするため、CDNはドキュメントおよびメディアにアップロードされたドキュメントをキャッシュできません。 これはセキュリティ上の理由から導入されたもので、それ以降は意図した動作となっています。 Liferayは最初からDocumentsとMediaのファイルをキャッシュされないように保護したいと考えています。 一般的に、CDNでドキュメントやメディアファイルをキャッシュすることはお勧めしません。キャッシュされたバージョンが提供され、その結果、アクセスできないはずのユーザーにファイルが流出する可能性があるためです。

そこで、DocumentsとMediaの項目でHTTP Cache-Controlを動的にする新しい機能リクエスト(LPS-97027)を作成しました。 当社の製品チームに依頼し、実現可能性を評価します。 チケットの進捗状況をお知らせしますので、お気軽にご覧ください。

Did this article resolve your issue ?

Legacy Knowledge Base