summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBOA Dev Team2019-01-09 15:50:49 (GMT)
committerBOA Dev Team2019-01-09 15:50:49 (GMT)
commite01714f89b2ce84820a3515337904d61d984c0e5 (patch)
tree6d83b13aab0a13a9bcdd4db77f5bb5868063585e
parent0f3c391950f91beea4f0e3f9031a25ce7ee82cc1 (diff)
Nginx: Support for dynamic /sw.js requests. See #2982073 on drupal.org
-rw-r--r--http/Provision/Config/Nginx/Inc/vhost_include.tpl.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php b/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
index c3bb25e..1fa1bc3 100644
--- a/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
+++ b/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
@@ -761,6 +761,13 @@ location ~* \.css$ {
}
###
+### Support for dynamic /sw.js requests. See #2982073 on drupal.org
+###
+location = /sw.js {
+ try_files $uri @drupal;
+}
+
+###
### Make js files compatible with boost caching.
###
location ~* \.(?:js|htc)$ {