Peter Knight Posted January 22, 2020 Share Posted January 22, 2020 I'm using Amazon CloudFront for the first time and have everything setup properly (almost). When I run my URL through a GTMetrix speed test, I repeatedly get a 'Minimise redirects' advisory notice. Below is just a sample of the results. It looks like my /site/ assets are successfully delivered via the CDN URL but are then are redirected back to the source css/img/js on my server. Obviously that defeats the purpose of a CDN ? Any ideas on what might be the cause of this? My .htaccess file is the default one supplied with Processwire and I'm running ProCache v3.1.8 ProcessWire 3.0.148 © 2020 Quote Remove the following redirect chain if possible: https://d1lbfxds6gcqenncd.cloudfront.net/assets/css/slick-custom.css https://www.mydomain.com/site/assets/css/slick-custom.css Remove the following redirect chain if possible: https://d1lbfxds6gcqenncd.cloudfront.net/assets/css/styles.css https://www.mydomain.com/site/assets/css/styles.css Remove the following redirect chain if possible: https://d1lbfxds6gcqenncd.cloudfront.net/assets/css/topnav.css https://www.mydomain.com/site/assets/css/topnav.css Remove the following redirect chain if possible: https://d1lbfxds6gcqenncd.cloudfront.net/assets/css/uikit-custom.css https://www.mydomain.com/site/assets/css/uikit-custom.css Have also attached a screen grab of the Cloudfront setup: BTW happy to DM the actual URL to interested parties. Just can't add it here. Link to comment Share on other sites More sharing options...
elabx Posted January 22, 2020 Share Posted January 22, 2020 This had happened to me once when I had set pw's .htaccess to automatically redirect to "www", then I had to update the origin domain name on AWS to "www.domain.com". Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now