pwa service-worker.js and pwa manifest.json nginx config
This commit is contained in:
parent
52cf652608
commit
ca403873f5
@ -42,6 +42,16 @@ server {
|
|||||||
gzip_http_version 1.0;
|
gzip_http_version 1.0;
|
||||||
gzip_static on;
|
gzip_static on;
|
||||||
|
|
||||||
|
## PWA serviceworker support.
|
||||||
|
location ~ ^/pwa/[0-9a-z]+/serviceworker.js {
|
||||||
|
try_files $uri /index.php?$query_string;
|
||||||
|
}
|
||||||
|
|
||||||
|
## PWA manifest support.
|
||||||
|
location ~ /manifest.json {
|
||||||
|
try_files $uri /index.php?$query_string;
|
||||||
|
}
|
||||||
|
|
||||||
location ~* \.(js|css|ttf|json)$ {
|
location ~* \.(js|css|ttf|json)$ {
|
||||||
gzip_static on;
|
gzip_static on;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user