0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

amplify publishしたのにサイトの内容が更新されないときの対処方法

Posted at

はじめに

Webサイトに変更を加え、amplify publishがエラーもなく完了したのに、その変更が反映されない場合の対処方法です。

原因

cloudfrontにキャッシュが残っていた。

対処方法

cloud frontでキャッシュ削除を行います。

  1. AWS Manegement Consoleにログインし、CouldFrontページに移動
  2. 対応するディストリビューションを選択
  3. 「キャッシュ削除」を選択
    スクリーンショット 2024-07-03 16.23.39.png
  4. 「キャッシュ削除を作成」を選択
  5. オブジェクトパスを指定する
    残しておきたいキャッシュが場合は/*で全選択しても大丈夫。
  6. 「キャッシュ削除を作成」を選択

これでしばらく待つとキャッシュが削除されるため、再びamplify publishすればOK。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?