Skip to content

Commit

Permalink
Merge pull request #505 from powerhouse-inc/move-service-worker-scrip…
Browse files Browse the repository at this point in the history
…t-to-assets-folder

fix: moved service-worker script to assets folder
  • Loading branch information
gpuente authored Aug 29, 2024
2 parents c145848 + fa97092 commit 4f0429a
Show file tree
Hide file tree
Showing 5 changed files with 262 additions and 16 deletions.
7 changes: 7 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ server {
add_header Cache-Control "public";
}

location ${BASE_PATH}/service-worker.js {
alias /usr/share/nginx/html/service-worker.js;
expires -1;
access_log off;
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
}

location ${BASE_PATH} {
root /usr/share/nginx/html;
index index.html;
Expand Down
Loading

0 comments on commit 4f0429a

Please sign in to comment.