On 13 Jun 2008, at 16:27, Gunnar Wolf wrote: > Alvaro Lopez Ortega dijo [Fri, Jun 13, 2008 at 07:28:57AM +0200]: >> >> The keys here are 'most' and 'similar'. We cannot relay on something >> that most of the Unix system have, or that is similar among them. It >> would be a mess. >> >> Besides, when we used the global mime.type we hit a couple of >> important issues. For instance, we could not define "Max-Age" custom >> values for its entries. So if we wanted to support the feature, >> (...) >> There is something that might help though. When the user adds a new >> Mime entry, Cherokee-admin could read the system mime.types (if >> present) and show the entries in the system file that are not >> configured in cherokee so the user could pick from a list instead or >> writing the mime type. It's not the perfect solution, but it is a >> step closer. > > I just hate duplication ;-) I understand your point, but... Well, the > MIME list table is not that huge, 764 lines long in my system. Maybe > if Cherokee read it at initialization time and, as long as nothing in > it is overriden in the configuration, uses the system-wide values? Of > course, a similar initialization routine could be done for whatever > convention other systems use. And its impact on the webserver itself > is negligible, as it could be seen as part of the initialization > process. > > Cherokee-admin could even report that "there are all those lines I > cannot manage - Import them all? Import one of them?" > > Of course, I'm currently not backing it with any code - but what do > you think about it?
I do not think it would not worth adding the code, actually. It'd raise the complexity of both cherokee and cherokee-admin for a little win that only would affect to some Linux distributions (not even all of them). We must keep in mind that the server runs almost everywhere: Linux, Solaris, OS X, BSDs, and even Windows. Every decision we make has to work across all the platforms; that's why cherokee-admin is a web application rather than a GTK+ one, for instance. There is something that we could do, though. How useful do you think that would be to have an importer that only shows up in the configuration Mime Page if /etc/mime.types is present? -- Greetings, alo. http://www.alobbs.com/ _______________________________________________ Cherokee mailing list [email protected] http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
