fix(pwa): harden service worker render to explicitly use js format (#2629)

Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>
This commit is contained in:
sentry[bot]
2026-07-08 08:31:51 +02:00
committed by GitHub
co-authored by sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>
parent 7fb6df71f2
commit 7e1713b831
+1 -1
View File
@@ -9,7 +9,7 @@ class PwaController < ApplicationController
def service_worker
# Explicitly render JS template to avoid format negotiation issues
render "pwa/service-worker", content_type: "application/javascript"
render "pwa/service-worker", formats: [ :js ], content_type: "application/javascript"
end
# Renders app/views/pwa/service-worker.js with content type application/javascript
end