Commit e23e4051 authored by omega8cc's avatar omega8cc

Issue #1515762 by omega8cc - Nginx microcaching should skip all known AJAX requests.

parent ed9bb0e2
......@@ -92,7 +92,7 @@ location ^~ /search {
###
### Deny crawlers and never cache known AJAX requests.
###
location ~* /autocomplete/ {
location ~* /(?:autocomplete|ajax|ahah)/ {
if ($is_bot) {
return 444;
}
......@@ -441,7 +441,7 @@ location ~* \.xml$ {
###
### Deny bots on never cached uri without 403 response.
###
location ~* ^/(?:.*/)?(?:user|cart|checkout|logout) {
location ~* ^/(?:.*/)?(?:user|cart|checkout|logout|flag) {
if ($is_bot) {
return 444;
}
......
......@@ -92,7 +92,7 @@ location ^~ /search {
###
### Deny crawlers and never cache known AJAX requests.
###
location ~* /autocomplete/ {
location ~* /(?:autocomplete|ajax|ahah)/ {
if ($is_bot) {
return 444;
}
......@@ -427,7 +427,7 @@ location ~* \.xml$ {
###
### Deny bots on never cached uri without 403 response.
###
location ~* ^/(?:.*/)?(?:user|cart|checkout|logout) {
location ~* ^/(?:.*/)?(?:user|cart|checkout|logout|flag) {
if ($is_bot) {
return 444;
}
......
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