Configuring any CDN to deliver only one file no matter what url has been requested

后端 未结 9 1815
日久生厌
日久生厌 2021-02-01 22:29

I am currently working on a new project where the entire page should be implemented in HTML5/JS working against an API/JSON. Since the entire application should only consist of

9条回答
  •  梦毁少年i
    2021-02-01 22:36

    This guy had a similar problem and used S3 / CloudFront. All his urls redirect to index.html with a statuscode 200.

    This is a workaround as it involves setting index.html as an error page.

    See details: https://kkob.us/2015/11/24/hosting-a-single-page-app-on-s3-with-proper-urls/

提交回复
热议问题