diff --git a/app/controllers/pwa_controller.rb b/app/controllers/pwa_controller.rb index 2ea181b33..46c949e12 100644 --- a/app/controllers/pwa_controller.rb +++ b/app/controllers/pwa_controller.rb @@ -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