diff options
author | keiya <keiya_21@yahoo.co.jp> | 2022-11-09 12:12:57 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 04:12:57 +0100 |
commit | 53817294fc95eabfed6129138f9aaa920e13c4b9 (patch) | |
tree | d5f4a0258c7710873c5cb42637e01125c010dd9d /dist | |
parent | dd7176a4b54a69f4a96648acb71abdff9fd45e3c (diff) |
Fix nginx location matching (#20198)
Diffstat (limited to 'dist')
-rw-r--r-- | dist/nginx.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/nginx.conf b/dist/nginx.conf index 5c16693d0..5bc960e25 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; |