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?

More than 3 years have passed since last update.

CloudFrontを導入してから、ブラウザ再読込で403エラーになってしまう際の解決法

Last updated at Posted at 2021-06-01

CloudFrontのコンソールから、Invalidationsタブ→Create Invalidationで/*を指定するとブラウザ再読込を行ってもエラーにならなくなりました。古いキャッシュを消してくれるようです。

image.png

ここまでだと、トップページ以外で再読込した場合はまだ403になってしまうので、CloudFrontのコンソールError Pagesタブで以下の用にトップページへリダイレクトする設定にします。
image.png

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?