Re: jar protocol

On Friday, May 10, 2013 at 2:23 AM, Jonas Sicking wrote:

> On Thu, May 9, 2013 at 9:36 AM, Marcos Caceres <w3c@marcosc.com (mailto:w3c@marcosc.com)> wrote:
> > On Wednesday, May 8, 2013 at 2:05 PM, Robin Berjon wrote:
> > > How do you figure out media types? Is it just sniffing, or do you have
> > > some sort of file extensions mapping as well?
> > 
> > Sniffing would probably sufficient. The types on the web are pretty stable.
> 
> 
> I'd probably hard-code at least a default set of extensions as well.
Sure. In the ol' widget spec, we relied on a "file identification table" to match common file extensions to mime types:
http://www.w3.org/TR/widgets/#file-identification-table

Worked OK, AFAIK. 


-- 
Marcos Caceres

Received on Friday, 10 May 2013 09:18:49 UTC