Jump to content
thirty bees forum
  • 0

301 redirects on CDN objects after upgrading to 1.1.0


Question

Posted

I am using Stackpath for my cdn. After I upgraded to 1.1.0 all of my objects that are hosted on the cdn are returning a 301 redirect. 

I go to this hypothetical url:

https://mysite.com/36817-home_default/myproduct.jpg

Header looks like this:

Request 
> GET /36817-home_default/myproduct.jpg HTTP/1.1
> Host: mysite-fuvvsqhiev3gat0u1l.stackpathdns.com
> User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246
Response 
< HTTP/1.1 301 Moved Permanently
< Server: nginx
< Date: Tue, 26 Nov 2019 01:01:55 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 0
< Connection: keep-alive
< X-Powered-By: PHP/7.0.33-0ubuntu0.16.04.7
< Location: https://mysite.com/36817-home_default/myproduct.jpg
< Expires: Thu, 26 Dec 2019 01:01:55 GMT
< Cache-Control: max-age=2592000
< Link: ; rel="canonical"
< X-Cache: MISS

Gtmetrix gives this response, and my Google page speed has dropped from a B+ to a C, while giving me a F rating in the "Minimize redirects" section. 

Remove the following redirect chain if possible:

https://mysite-fuvvsqhiev3gat0u1l.stackpathdns.com/36817-home_default/myproduct.jpg
https://mysite.com/36817-home_default/myproduct.jpg

I am not sure if this is a problem with the cdn or with ThirtyBees. It did show up after I updated to 1.1.0.

Thanks for any help!

2 answers to this question

Recommended Posts

  • 0
Posted

Found it. About a month ago Chrome stopped displaying the "www." in the address bar for all sites. In an effort to go with the flow I removed the www. from everywhere. I did however forget to remove it from the originating url in the CDN control panel. 

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...