Wiki source for MimeTypesFileDevelopment


Show raw source

=====Development page for the mime-types file=====

>>**See also**
[[Docs:MimeTypesFile | content of the file]]
>>===##mime_types.txt##===
Note 1 : The ##mime_types.txt## file //isn't yet// used by Wikka, so Note 2 below doesn't concern Wikka actually (version 1.1.6.0). But a file named mime_types.txt is distributed with Wikka, and is configured with $this->config['mime_types']

Note 2 : Usually, we use the extension ##.css## for Cascading StyleSheet files, and their content-type **should be text/css**. Unfortunately, css extension is registered with
application/x-ilinc-pointplus. [[http://www.ietf.org/rfc/rfc2318.txt | RFC2318]] **suggests** the extension css for cascading stylesheet files, but hasn't registered it. This conflict concerns not only Wikka but the entire www community. The workaround I've found is to use another extension (css2) for my css files.

(For WikkaOptimization, I plan to use gzip-encoding for all text files. Without adding the correct content-type with header(), these files will be served as text/html. I tried to use the file mime_types.txt but css are served as application/x-ilinc-pointplus. The workaround I've found is to use another extension, .css2 for Cascading Stylesheet files.)
--DotMG

~&Unless you are actually **using** ILinc, a better solution would be to simply comment out the application/x-ilinc-pointplus line - that way you use at least the convention and may prevent problems with browsers that (erroneously but alas all to commonly) look at a file's extension rather than the MIME type. On the server, you actually need to define only those MIME types that you actually use. --JavaWoman

----
CategoryDevelopmentDiscussion
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki