react-snap icon indicating copy to clipboard operation
react-snap copied to clipboard

No service worker - but index.html still flashing when visiting other routes

Open VexyCats opened this issue 5 years ago • 6 comments

Bug Report

Current Behavior

When visiting a route such as mysite.com/profile it will flash the homepage before loading the new route. This happens on every route.

Using Create-react-app.

This doesn't happen when using the serviceworker, but that was causing caching issues so I removed our Service worker.

I'm following all the steps within the docs to use react-snap and I'm hosting on AWS s3 and cloudfront.

Cloudfront is serving 200.html from S3 as the origin. And S3 is using 200.html as the index.

Edit: Cloudfront serving index.html also has the same issue.

Is there some settings on AWS/S3/Cloudfront I'm missing or something that needs to be set up on the react side?

Currently, I have everything set up exactly as the example in the docs.

I've asked on stackoverflow and no response

VexyCats avatar Jul 23 '20 14:07 VexyCats

I've had the same problem. I fixed it by allowing public permissions on my s3 bucket

AMessina2 avatar Jul 24 '20 10:07 AMessina2

Thats not the solution, the website is being hosted from the bucket, its all public. Otherwise the site wouldn't load.

VexyCats avatar Jul 24 '20 14:07 VexyCats

@VexyCats did u manage to fix this?

gvlatko avatar Jul 27 '20 12:07 gvlatko

Nope - a lot of issues with react-snap it seems. I've just uninstalled it and won't be using it. No support on stackoverflow, no support on github, docs are outdated, and countless errors.

VexyCats avatar Jul 27 '20 13:07 VexyCats

I am having the same issue.

oosharma avatar Aug 02 '21 18:08 oosharma

I'm also facing the same issue on a self hosted server with react router v6.

BlazeIsClone avatar Mar 28 '22 10:03 BlazeIsClone