|
@@ -38,10 +38,20 @@ server {
|
|
|
|
|
|
gzip on;
|
|
|
gzip_types application/json;
|
|
|
-
|
|
|
+
|
|
|
gzip_http_version 1.0;
|
|
|
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)$ {
|
|
|
gzip_static on;
|
|
|
}
|