diff --git a/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php b/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php index 1fa1bc3c9825b7f190e84e4ca60b57ec5ed8c8e3..8d7ca1f54beae7efc6758ad26f58122769234bbe 100644 --- a/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php +++ b/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php @@ -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. ###