-
Notifications
You must be signed in to change notification settings - Fork 15
Add new content type headers
LODSPeaKr serves static files by itself, not relying on the web server. This is done so users can have control on what content is served (I want to show a resource identified by http://example.org/a
and at the same time I have a file called http://example.org/a
).
Currently, LODSPeaKr serves correctly most of the files you may possibly want to expose to the Web. In the extremely rare cases where you have problems related to the content type returned with your file, you can fix it by adding the following line in your settings.inc.php
file:
$conf['static']['mimetypes']['myextension'] = 'application/myapplication';
In this way, everytime a file with the extension .myextension
is requested, LODSPeaKr will return it along with a HTTP header Content-type: application/myapplication
.
You can add several new extensions to $conf['static']['mimetypes']
. Be aware that if an extension already exists (e.g., html
) they mime type will be overriden by your own configuration.