From 720f66ece0459b79a3d9bd5da015f1979ea3ee9a Mon Sep 17 00:00:00 2001 From: Jusaa Date: Mon, 2 Oct 2023 12:17:12 +0300 Subject: [PATCH] Fix Geoweb webmanifest Content-Type (#29) --- charts/geoweb-frontend/Chart.yaml | 5 ++++- charts/geoweb-frontend/values.yaml | 9 +++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/charts/geoweb-frontend/Chart.yaml b/charts/geoweb-frontend/Chart.yaml index b14f550..18b8092 100644 --- a/charts/geoweb-frontend/Chart.yaml +++ b/charts/geoweb-frontend/Chart.yaml @@ -15,10 +15,13 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 3.0.2 +version: 3.0.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. appVersion: "v8.0.0" + +maintainers: + - name: Jusaa diff --git a/charts/geoweb-frontend/values.yaml b/charts/geoweb-frontend/values.yaml index 050da08..af683ba 100644 --- a/charts/geoweb-frontend/values.yaml +++ b/charts/geoweb-frontend/values.yaml @@ -38,7 +38,12 @@ ingress: if ($request_uri ~* \.(json)) { add_header Cache-Control "no-cache"; } - if ($request_uri ~* \.(woff2|svg|webmanifest)) { + if ($request_uri ~* \.(woff2|svg)) { add_header Cache-Control "max-age=604800"; } - ingressClassName: nginx \ No newline at end of file + if ($request_uri ~* \.(webmanifest)) { + more_clear_headers 'Content-Type'; + add_header Content-Type "application/manifest+json"; + add_header Cache-Control "max-age=604800"; + } + ingressClassName: nginx