@codesections I just read your post codesections.com/blog/netlify/. Interestingly I add the Netlify redirects to avoid that just recently[1] :)

I have a question though.. you mention the use of rel canonical to solve the lesser second half of the problem.. What is that second problem? Shouldn't just the redirects be enough?

Btw, I have grown to prefer netlify.toml over the _redirects, etc. cookie files; esp. for CSP rules.

[1]: gitlab.com/kaushalmodi/kaushal

@kaushalmodi also, what do you like better about using the netlify.toml file? Just that it keeps everything in one file? Or is there another advantage I don't know about?

Kaushal Modi
Follow

@codesections

> Just that it keeps everything in one file?

That too, plus

> Or is there another advantage I don't know about?

The triple-quoted multi-line strings! With those, the CSP can be broken over multiple lines like this[1]. And without that, that whole CSP block would need to be written in a single line in _headers.

[1]: gitlab.com/kaushalmodi/kaushal

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!

We adhere to an adapted version of the TootCat Code of Conduct and follow the Toot Café list of blocked instances. Ash is the admin and is supported by Fuzzface as a moderator.

Hosting costs are largely covered by our generous supporters on Patreon – thanks for all the help!