K on Nostr: blossom compatibility: ...
blossom compatibility:
quoting nevent1q…wuvgBUD-01 doesn't mention anything about 301 or 302 redirects, mostly because no one has implemented them yet. However you bring up a good point.
I would say both
https://www.myblossomserver/b1674191a88ec5cdd733e4240a81803105dc412d6c6708d53ab94fc248f4f553
https://s3.us-east-2.amazonaws.com/myawesomebucket/b1674191a88ec5cdd733e4240a81803105dc412d6c6708d53ab94fc248f4f553
are blossom compatible URLs because they contain a sha256 as the filename that presumably matches the file returned.
However only the first "www.myblossomserver" URL is a "blossom" URL because the hash is at the root path
When it comes to redirects. they shouldn't cause any issues in the protocol as along as the browser or client knows how to handle redirects (the -L flag in curl)
The only concern I have is for users. for example if I upload an image to myblossomserver.com and it gives me the URL mybloccomserver.com/.webp
If the user opens the URL, gets redirected to s3.us-east-2.amazonaws.com/myawesomebucket/(without the .webp ext) and copies the URL in the browsers URL bar. they will end up pasting a "bad" URL into their social media post and then image wont show in most clients
Again I don't think there is any harm in using redirects, but you have to keep in mind a lot of users actually copy the URL from the address bar. or modify it directly