From 1e114604085c6f6aea7d924b22d03866b71ec0fa Mon Sep 17 00:00:00 2001
From: =?utf8?q?Igor=20Gali=C4=87?=
Date: Sat, 18 Sep 2010 21:41:04 +0000
Subject: [PATCH] Explanation on how to prioritize mime-types on the serverside
with AddType.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@998553 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/mod/mod_mime.html.en | 29 +++++++++++++++++++++--------
docs/manual/mod/mod_mime.xml | 30 +++++++++++++++++++++---------
2 files changed, 42 insertions(+), 17 deletions(-)
diff --git a/docs/manual/mod/mod_mime.html.en b/docs/manual/mod/mod_mime.html.en
index 350c29b111..666892e19f 100644
--- a/docs/manual/mod/mod_mime.html.en
+++ b/docs/manual/mod/mod_mime.html.en
@@ -537,8 +537,13 @@ type
type to use for filenames containing
extension. This mapping is added to any already in
force, overriding any mappings that already exist for the same
- extension. This directive can be used to add mappings
- not listed in the media types file (see the TypesConfig
directive).
+ extension.
+
+
+ It is recommended that new media types be added using the
+
AddType
directive rather than changing the
+
TypesConfig
file.
+
Example
AddType image/gif .gif
@@ -550,17 +555,24 @@ type
AddType image/jpeg jpeg jpg jpe
-
- It is recommended that new media types be added using the
-
AddType
directive rather than changing the
-
TypesConfig
file.
-
-
The extension argument is case-insensitive and can
be specified with or without a leading dot. Filenames may have multiple extensions and the
extension argument will be compared against each of
them.
+ A simmilar effect to mod_negotiation
's
+ LanguagePriority
+ can be achieved by qualifying a media-type with
+ qs
:
+
+ Example
+ Addtype application/rss+xml;qs=0.8 .xml
+
+
+ This is useful in situations, e.g. when a client
+ requesting Accept: */*
can not actually processes
+ the content returned by the server.
+
This directive primarily configures the content types generated for
static files served out of the filesystem. For resources other than
static files, where the generator of the response typically specifies
@@ -570,6 +582,7 @@ type
See also
diff --git a/docs/manual/mod/mod_mime.xml b/docs/manual/mod/mod_mime.xml
index c94681ea7e..d9091a1fc3 100644
--- a/docs/manual/mod/mod_mime.xml
+++ b/docs/manual/mod/mod_mime.xml
@@ -529,9 +529,13 @@ type
type to use for filenames containing
extension. This mapping is added to any already in
force, overriding any mappings that already exist for the same
- extension. This directive can be used to add mappings
- not listed in the media types file (see the TypesConfig directive).
+ extension.
+
+
+ It is recommended that new media types be added using the
+ AddType directive rather than changing the
+ TypesConfig file.
+
Example
AddType image/gif .gif
@@ -543,18 +547,25 @@ type
AddType image/jpeg jpeg jpg jpe
-
- It is recommended that new media types be added using the
- AddType directive rather than changing the
- TypesConfig file.
-
-
The extension argument is case-insensitive and can
be specified with or without a leading dot. Filenames may have multiple extensions and the
extension argument will be compared against each of
them.
+ A simmilar effect to mod_negotiation's
+ LanguagePriority
+ can be achieved by qualifying a media-type with
+ qs
:
+
+ Example
+ Addtype application/rss+xml;qs=0.8 .xml
+
+
+ This is useful in situations, e.g. when a client
+ requesting Accept: */*
can not actually processes
+ the content returned by the server.
+
This directive primarily configures the content types generated for
static files served out of the filesystem. For resources other than
static files, where the generator of the response typically specifies
@@ -562,6 +573,7 @@ type
ForceType
+mod_negotiation
--
2.40.0