Added json extension to the list of known static files that have to fall back to 404 on nginx

This commit is contained in:
Alejandro Celaya 2019-10-21 18:49:47 +02:00
parent e9fc2bb73a
commit 66124370a6
3 changed files with 3 additions and 1 deletions

View file

@ -16,6 +16,7 @@ With that said, please fill in the information requested next. More information
#### Shlink web client version
* Version: x.y.z
* How do you use shlink-web-client: app.shlink.io|Docker image|self-hosted
#### Summary

View file

@ -16,6 +16,7 @@ With that said, please fill in the information requested next. More information
#### Shlink web client version
* Version: x.y.z
* How do you use shlink-web-client: app.shlink.io|Docker image|self-hosted
#### Summary

View file

@ -5,7 +5,7 @@ server {
index index.html;
# When requesting static paths with extension, try them, and return a 404 if not found
location ~ .+\.(css|js|html|png|jpg|jpeg|gif|bmp|ico|csv|otf|eot|svg|svgz|ttf|woff|woff2|ijmap|pdf|tif|map) {
location ~ .+\.(css|js|html|png|jpg|jpeg|gif|bmp|ico|json|csv|otf|eot|svg|svgz|ttf|woff|woff2|ijmap|pdf|tif|map) {
try_files $uri $uri/ =404;
}