CDN Problem Loading .jsx Files from AWS CloudFront
$30-250 AUD
Completed
Posted about 4 years ago
$30-250 AUD
Paid on delivery
I am having a problem when we load the static assets (images, js, css, jsx) for our website from an S3/CloudFront CDN on AWS. Specifically, the jsx files don't download at all.
These files load perfectly when the static assets are loaded from our web server.
When we attempt to load the static assets from and AWS/S3/CloudFront CDN all the assets load perfectly with the exception of the jsx files which the browser fails to locate.
For some reason the path to the jsx files get a .js extension appended to them so they appear with a .[login to view URL] extension. e.g. Instead of loading [login to view URL] as it should, it tries to load the file as [login to view URL] which simply does not exist. I can't workout why the .js extension is being appended to the jsx files when they are accessed from the CDN. If you think you know why this is happening and have a solution for me submit your proposal and I will send you the full details. Thanks.
Hello,
We have our files hosted on CloudFront. Also, we use react bundle. You need to change the configuration in your S3. Since CloudFront relies on S3 configuration for setting extensions and resonse types.
I can help you better if you provide details of the hosted jsx and related files with your Cloudfront configuration
Regards,
Deepak
$140 AUD in 7 days
5.0 (21 reviews)
5.8
5.8
3 freelancers are bidding on average $127 AUD for this job