html - Can an Image in Web Browser use any file extension? -
html - Can an Image in Web Browser use any file extension? -
what if rename image custom file extension, choke browsers?
for example..
image.jpg
rename to:
image.xyz
then in markup do..
<img src="image.xyz">
the image still jpeg format uses custom file extension. tests pass. cause potential issues?
yes, possible, you'd need set mime type in server. browsers don't care extension, care mime type server specifies image should be.
when mime type set, returns in content-type
header of response image request.
html image http browser file-extension
Comments
Post a Comment