Commit 37714fff authored by BOA Dev Team's avatar BOA Dev Team

Nginx: Fix support for dynamic .json requests

parent e01714f8
......@@ -787,6 +787,13 @@ location ~* \.(?:js|htc)$ {
try_files /cache/perm/$host${uri}_.js $uri =404;
}
###
### Support for dynamic .json requests.
###
location ~* \.json$ {
try_files $uri @drupal;
}
###
### Support for static .json files with fast 404 +Boost compatibility.
###
......@@ -804,13 +811,6 @@ location ~* ^/sites/.*/files/.*\.json$ {
try_files /cache/normal/$host${uri}_.json $uri =404;
}
###
### Support for dynamic .json requests.
###
location ~* \.json$ {
try_files $uri @cache;
}
###
### Helper location to bypass boost static files cache for logged in users.
###
......
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