Ask A Question

Notifications

You’re not receiving notifications from this thread.

Disable service worker?

Tom Lee asked in Rails

Hi I have a brand new Rails app and it's making request to /service-worker.js/, resulting in some annoying ActionController::RoutingError (No route matches [GET] "/service-worker.js"):, while I think I can make an service-worker endpoint that does nothing to silence it, what is the Rails way to disable that for now?

Also, I can't find resource on Rails guide for this matter, do you mind suggesting some reading? Thanks!

Reply

Thanks Martin in the GoRails Slack group for helping me out:
https://love2dev.com/blog/how-to-uninstall-a-service-worker/

Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 71,933+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2023 GoRails, LLC. All rights reserved.