Commit 82a59216 authored by memtkmcc's avatar memtkmcc Committed by memtkmcc

Issue #2926905 by memtkmcc, bgm: CiviCRM on nginx with multi-lingual: disable caching

parent 0c3b9240
......@@ -441,6 +441,18 @@ location ^~ /civicrm {
try_files $uri @drupal;
}
###
### Avoid caching /civicrm* and protect it from bots on a multi-lingual site
###
location ~* ^/\w\w/civicrm {
if ( $is_bot ) {
return 403;
}
access_log off;
set $nocache_details "Skip";
try_files $uri @drupal;
}
###
### Support for audio module.
###
......
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