Update example nginx config for sw.js

This commit is contained in:
Phan An 2019-03-13 09:00:48 +01:00
parent 14e866f062
commit 7baba197d5

View file

@ -9,7 +9,7 @@ server {
gzip_comp_level 9; gzip_comp_level 9;
# Whitelist only index.php, robots.txt, and some special routes # Whitelist only index.php, robots.txt, and some special routes
if ($request_uri !~ ^/$|index\.php|robots\.txt|(public|api)/|remote|api-docs) { if ($request_uri !~ ^/$|index\.php|robots\.txt|(public|api)/|remote|api-docs|sw\.js) {
return 404; return 404;
} }