legacy-knowledge-base
公開されました Jun. 30, 2025

Google Chromeで古い画像のサムネイルが表示されない

written-by

Daniel Couso

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

問題

  • かなり前に作成された画像に関するサムネイルは、Chromeでは表示されませんが、Firefoxでは表示されます。
  • デベロッパーツールでリクエストを検査すると、使用されているHTTPプロトコルのバージョンに応じて、以下のメッセージが表示されます:
    • err_quic_protocol_error
    • err_http2_protocol_error
    • err_content_length_mismatch

環境

  • Liferay DXP 7.2

解像度

  • 根本的な原因は、サムネイルファイルのHTTPヘッダーに設定されたサイズが、取得されたファイルの実際のサイズと等しくないことである。
  • 解決策としては、オリジナル画像の新しいバージョンを追加し直すか、コントロールパネル > 設定 > 管理サーバー > スクリプトでこの記事に添付されているスクリプトを使用して、サイズの不一致があるすべてのサムネイルをチェックし、再生成することです。
did-this-article-resolve-your-issue

legacy-knowledge-base