# RoutingError for service-worker.js

**URL:** https://meta.discourse.org/t/routingerror-for-service-worker-js/80895
**Category:** Support
**Created:** [February 18, 2018, 7:31pm UTC](https://meta.discourse.org/t/routingerror-for-service-worker-js/80895 "2018-02-18T19:31:03Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![fhe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fhe/32/113345_2.png) [@fhe](https://meta.discourse.org/u/fhe)
#### Post date: [February 18, 2018, 7:31pm UTC](https://meta.discourse.org/t/routingerror-for-service-worker-js/80895/1 "2018-02-18T19:31:03Z")

</div>

I’m getting lots of

```plaintext
Started GET "/service-worker.js" for <IP REMOVED> at 2018-02-18 19:28:32 +0000
ActionController::RoutingError (No route matches [GET] "/service-worker.js")
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
  Rendering exceptions/not_found.html.erb within layouts/no_ember
  Rendered exceptions/not_found.html.erb within layouts/no_ember (5.2ms)
  Rendered layouts/_head.html.erb (0.2ms)
  Rendered common/_special_font_face.html.erb (0.1ms)
  Rendered common/_discourse_stylesheet.html.erb (0.1ms)
  Rendered application/_header.html.erb (0.1ms)
  Rendering html template
  Rendered html template (0.0ms)

```

in production.log. Any idea why?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [February 18, 2018, 7:45pm UTC](https://meta.discourse.org/t/routingerror-for-service-worker-js/80895/2 "2018-02-18T19:45:49Z")

</div>

What version of discourse are you running?

---

<div class="post-metadata">

### Author: ![fhe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fhe/32/113345_2.png) [@fhe](https://meta.discourse.org/u/fhe)
#### Post date: [February 18, 2018, 7:51pm UTC](https://meta.discourse.org/t/routingerror-for-service-worker-js/80895/3 "2018-02-18T19:51:28Z")

</div>

It’s the latest version.

 ![discourse-version](https://global.discourse-cdn.com/meta/original/3X/8/e/8e44b8d3228b8dca9a794e9151e4d8cdefb09e40.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 18, 2018, 8:15pm UTC](https://meta.discourse.org/t/routingerror-for-service-worker-js/80895/4 "2018-02-18T20:15:43Z")

</div>

We renamed this file on latest, it is meant to unregister the old one

Is this causing issues?

cc @tgxworld

---

<div class="post-metadata">

### Author: ![fhe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fhe/32/113345_2.png) [@fhe](https://meta.discourse.org/u/fhe)
#### Post date: [February 18, 2018, 8:20pm UTC](https://meta.discourse.org/t/routingerror-for-service-worker-js/80895/5 "2018-02-18T20:20:05Z")

</div>

> [@sam](#):
>
> Is this causing issues?

No, I’ve noticed a lot of 4xx’s in the detailed traffic report which made me curious.

I’m pretty new to Discourse, so I wasn’t sure whether I should do anything about it. If it’s supposed to be that way (at least temporary) all is fine.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [February 19, 2018, 1:40am UTC](https://meta.discourse.org/t/routingerror-for-service-worker-js/80895/8 "2018-02-19T01:40:03Z")

</div>

Fixed in

[https://github.com/discourse/discourse/commit/d601a6b23cf270f79d635eadd56590188fa2ea20](https://github.com/discourse/discourse/commit/d601a6b23cf270f79d635eadd56590188fa2ea20)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [February 19, 2018, 9:57am UTC](https://meta.discourse.org/t/routingerror-for-service-worker-js/80895/9 "2018-02-19T09:57:00Z")

</div>


