Saurabh Pillai wrote:I was just curious, if this type of urls https://coderanch.com/forums/posts/quote/0/2445384 add any benefit?
They are semantic. Jeanne pointed out the main advantage.
The advantage the extension had (sic past tense), besides when serving static files: Broken servers and clients (i.e. browsers) treated a document by extension, not by content type. So in earlier times some browsers would offer you to save a file instead of presenting it because the browser didn't know what to do with it without extension. Oh, and there where some server that determined the content type by extension and set it "automagically" so you didn't have to care for that. One of the situations where it would have been better to let the system fail so the cause gets fixed.
Broken clients, broken servers. Long time gone.