Reputation: 26771
I know there are lots of reasons to hide the file extension in your URLs. Is there any benefit to showing them, though?
Upvotes: 1
Views: 215
Reputation: 9685
None, if the content is going to be viewed in the browser. For downloads or content you are expecting the user to interact with as Content-Disposition: attachment, users might prefer to see the familiar extensions. It's still perfectly possible though to serve files using URLs like example.com/audio/2011-05-08 and use the HTTP header to prompt the browser to use a filename with an extension when saving.
Upvotes: 0
Reputation: 2273
A benefit would be that the filetype is evident when saving files from the browser, e.g. spreadsheet.ods
instead of spreadsheet
. This is especially valid for Windows systems who still don't consider the file's contents, but just the filename.
Upvotes: 1
Reputation: 14149
I think these days file extensions are less and less important. The MIME type of the item should be returned by the server which makes the ending rather redundant.
Upvotes: 1