Commit 56451d1f authored by omega8cc's avatar omega8cc

Issue #1505370 by tribe_of_dan - Conflict between Mime Type and Document Type in Nginx.

parent 11d42bf8
......@@ -438,27 +438,6 @@ location ~* \.xml$ {
try_files /cache/$device/$host${uri}_.xml /cache/$device/$host${uri}_.html $uri @drupal;
}
###
### Make feeds compatible with Boost caching and set correct mime type.
###
location ~* /feed {
if ( $request_method = POST ) {
return 405;
}
if ( $cache_uid ) {
return 405;
}
error_page 405 = @drupal;
access_log off;
add_header Expires "Tue, 24 Jan 1984 08:00:00 GMT";
add_header Cache-Control "must-revalidate, post-check=0, pre-check=0";
add_header X-Header "Boost Citrus 2.5";
charset utf-8;
types { }
default_type application/rss+xml;
try_files /cache/$device/$host${uri}_.xml /cache/$device/$host${uri}_.html $uri @drupal;
}
###
### Deny bots on never cached uri without 403 response.
###
......
......@@ -424,27 +424,6 @@ location ~* \.xml$ {
try_files /cache/$device/$host${uri}_.xml /cache/$device/$host${uri}_.html $uri @drupal;
}
###
### Make feeds compatible with Boost caching and set correct mime type.
###
location ~* /feed {
if ( $request_method = POST ) {
return 405;
}
if ( $cache_uid ) {
return 405;
}
error_page 405 = @drupal;
access_log off;
add_header Expires "Tue, 24 Jan 1984 08:00:00 GMT";
add_header Cache-Control "must-revalidate, post-check=0, pre-check=0";
add_header X-Header "Boost Citrus 2.5";
charset utf-8;
types { }
default_type application/rss+xml;
try_files /cache/$device/$host${uri}_.xml /cache/$device/$host${uri}_.html $uri @drupal;
}
###
### Deny bots on never cached uri without 403 response.
###
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment