From 53817294fc95eabfed6129138f9aaa920e13c4b9 Mon Sep 17 00:00:00 2001 From: keiya Date: Wed, 9 Nov 2022 12:12:57 +0900 Subject: [PATCH] Fix nginx location matching (#20198) --- dist/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/nginx.conf b/dist/nginx.conf index 5c16693d085..5bc960e2568 100644 --- a/dist/nginx.conf +++ b/dist/nginx.conf @@ -58,7 +58,7 @@ server { # If Docker is used for deployment and Rails serves static files, # then needed must replace line `try_files $uri =404;` with `try_files $uri @proxy;`. - location = sw.js { + location = /sw.js { add_header Cache-Control "public, max-age=604800, must-revalidate"; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; try_files $uri =404;