Martti Malmi on Nostr: I changed nostr.json?name=user not found error code to 418 so CF doesn't cache it. ...
I changed nostr.json?name=user not found error code to 418 so CF doesn't cache it. But maybe it should return code 200 with empty {"names":{}}? I wonder how others do it.
Published at
2023-02-23 10:40:26Event JSON
{
"id": "b9641b1c3b010a76ffb9613cb2773f5f3624690eaeeb21647cd7bb29bf0a30d0",
"pubkey": "4523be58d395b1b196a9b8c82b038b6895cb02b683d0c253a955068dba1facd0",
"created_at": 1677148826,
"kind": 1,
"tags": [
[
"e",
"8cee3bc5359fb4d592d529fb801555033b173c1da258ae671c73ea82e7c1cbe4",
"",
"root"
],
[
"e",
"8b062750d319b221a89fa066587bb3adf5d4121a2aabca709013bcfef7ad06d7",
"",
"reply"
],
[
"p",
"4523be58d395b1b196a9b8c82b038b6895cb02b683d0c253a955068dba1facd0"
],
[
"p",
"28e179f63b9e5aa05002b7918b70d81f77525849a9db2f9f39474e34a5fc7af6"
]
],
"content": "I changed nostr.json?name=user not found error code to 418 so CF doesn't cache it. But maybe it should return code 200 with empty {\"names\":{}}? I wonder how others do it.",
"sig": "27fa8c1430beab16cdc8990f6a94d647347819da8db0b51f09753cf8363950bf26d77e5f64c0a6960e8fe090c0dcb07853d32458163b48999394f11d6771ba3d"
}