Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netlify redirect Location header not returning new domain for cURL requests #20

Closed
thescientist13 opened this issue May 2, 2024 · 1 comment
Assignees
Labels
bug Something isn't working integration

Comments

@thescientist13
Copy link

Summary

After instrumenting AnalogStudiosRI#139 as part of #1 , I can confirm browsers are correctly redirecting from www.blissfestri.com -> www.blissri.com

Screen Shot 2024-05-02 at 11 49 55 AM

But cURL is showing something different?

 ✗ curl -I https://www.blissfestri.com/
HTTP/2 301
content-type: text/plain; charset=utf-8
date: Thu, 02 May 2024 15:48:51 GMT
location: https://blissfestri.com/
server: Netlify
strict-transport-security: max-age=31536000
x-nf-request-id: 01HWWZX0EGFXAFPQW2QRRNCJSR

Details

If it's working for browsers, then I suppose its not a Netlify issue, but strange that cURL would be the one not handling it correctly?

Either way, while its good browsers are picking it up, would be good to know why this is happening so as not to avoid any possible issues with SEO or searches as we get closer to the day of the festival.

@thescientist13 thescientist13 added this to the BlissRI Website (2024) milestone May 2, 2024
@thescientist13 thescientist13 self-assigned this May 2, 2024
@thescientist13 thescientist13 changed the title Netlify redirect Location header now returning new domain Netlify redirect Location header not returning new domain for cURL requestsa May 2, 2024
@thescientist13 thescientist13 changed the title Netlify redirect Location header not returning new domain for cURL requestsa Netlify redirect Location header not returning new domain for cURL requests May 2, 2024
@thescientist13 thescientist13 added the bug Something isn't working label May 2, 2024
@thescientist13 thescientist13 pinned this issue May 2, 2024
@thescientist13
Copy link
Author

Doh, forgot that cURL doesn't follow redirects, so have to pass the -L flag. Now it is showing the correct results 💯

 ✗ curl -IL https://www.blissfestri.com/
HTTP/2 301
content-type: text/plain; charset=utf-8
date: Thu, 02 May 2024 17:19:40 GMT
location: https://blissfestri.com/
server: Netlify
strict-transport-security: max-age=31536000
x-nf-request-id: 01HWX5399XV69SZM62NMNZA8TN

HTTP/2 301
age: 0
cache-control: public,max-age=0,must-revalidate
cache-status: "Netlify Edge"; fwd=miss
content-type: text/plain; charset=utf-8
date: Thu, 02 May 2024 17:19:40 GMT
location: https://www.blissri.com/
server: Netlify
strict-transport-security: max-age=31536000
x-nf-request-id: 01HWX539DFGMYR8XYZ1EHC4T91
content-length: 39

HTTP/2 301
content-type: text/plain; charset=utf-8
date: Thu, 02 May 2024 17:19:40 GMT
location: https://blissri.com/
server: Netlify
strict-transport-security: max-age=31536000
x-nf-request-id: 01HWX539HKMG889SSB1GVJM4WV

HTTP/2 200
accept-ranges: bytes
age: 0
cache-control: public,max-age=0,must-revalidate
cache-status: "Netlify Edge"; fwd=miss
content-type: text/html; charset=UTF-8
date: Thu, 02 May 2024 17:19:40 GMT
etag: "2c68be539d57848d4a45b06093dde40a-ssl"
server: Netlify
strict-transport-security: max-age=31536000
x-nf-request-id: 01HWX539N46BVVM7P3Z8WYSHNP
content-length: 24032

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working integration
Projects
None yet
Development

No branches or pull requests

1 participant