Cache Busting - CI/CD用語集の定義
cache busting はコンテンツが変わったときにassetのURLを変更し、ユーザーが古いキャッシュのファイルを実行しないようにします。
cache busting はファイルのURLを変更する(通常はファイル名のコンテンツハッシュによって)ことで、クライアントに新しいバージョンをダウンロードさせます。deploy後にユーザーが古いキャッシュのassetを実行するのを防ぎます。
主流の手法はファイル名にコンテンツハッシュを含めることです。同一のコンテンツは同じURLを維持してキャッシュされたままになり、変更されたコンテンツは新しいURLを取得します。これにより長いキャッシュ有効期間を安全に設定できます。CIでは、プロダクション build がハッシュ付きファイル名と manifest を出力します。
関連ガイド
Asset Hashing - CI/CD Glossary DefinitionAsset Hashing: Asset hashing embeds a content-derived hash in output filenames (for example `app.3f9a1c.js`)…
Content Hash - CI/CD Glossary DefinitionContent Hash: A content hash is a hash computed from a file contents, used in output filenames so the name ch…
Long-Term Caching - CI/CD Glossary DefinitionLong-Term Caching: Long-term caching is serving static assets with a far-future cache lifetime so browsers re…