first release! 0.3.6
This commit is contained in:
@@ -18,6 +18,20 @@ server {
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
# Service Worker - no caching!
|
||||
location = /sw.js {
|
||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||
add_header Pragma "no-cache";
|
||||
add_header Expires "0";
|
||||
add_header Service-Worker-Allowed "/";
|
||||
}
|
||||
|
||||
# PWA Manifest
|
||||
location = /manifest.json {
|
||||
add_header Cache-Control "public, max-age=86400";
|
||||
add_header Content-Type "application/manifest+json";
|
||||
}
|
||||
|
||||
# React routing
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
|
||||
Reference in New Issue
Block a user