ruby-on-railsrubynginxyslowgoogle-pagespeed

Avoid URL redirects


when i checked the GTmetrix site in Yslow it has shown that i have few URL redirects which i need to avoid for increasing my site speed. But i had URL redirects from

Youtube and googleads is there any possibility of avoiding these.


Solution

  • For the ads, the general answer is No. Redirects are very common there and there isn't much you can do.

    For the embedded youtube.com content, you could explicitly include them with secure links "https://" instead of "http://". That might save you some redirect penalties.