Get content type from actual name of file, not from the URL path
Decouple static resource name from location
Sample index.html