# 在尝试获取 push\_service\_worker.js 时发生 ERR\_INVALID\_RESPONSE

**URL:** <https://meta.discourse.org/t/err-invalid-response-trying-to-get-push-service-worker-js/55064>\
**Category:** Self-hosting\
**Created:** [2017 年1 月 2 日 18:59 UTC](https://meta.discourse.org/t/err-invalid-response-trying-to-get-push-service-worker-js/55064 "2017-01-02T18:59:59Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![dani14\_96](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dani14_96/32/121285_2.png) [@dani14\_96](https://meta.discourse.org/u/dani14_96)\
发布日期： [2017 年1 月 2 日 18:59 UTC](https://meta.discourse.org/t/err-invalid-response-trying-to-get-push-service-worker-js/55064/1 "2017-01-02T18:59:59Z")

</div>

I’m running Discourse in a docker container behind a reverse proxy with Apache, so my app.yml config file is  
expose:  
- “8080:80” # http  
- “4443:443” # https  
The reverse proxy works for http connections. I installed a ssl certificate with letsencrypt as explained [here](https://meta.discourse.org/t/howto-setup-discourse-with-lets-encrypt-and-apache-ssl/46139), and it works too.  
Chrome Developer Tools show that if fails to GET push-service-worker.js  
 ![](https://global.discourse-cdn.com/meta/optimized/3X/4/a/4a197d404f878c92e0107989d7b0ec44a6a4c4da_2_690x38.png)  
Browsing [https://foro.soybiotec.es/push-service-worker.js](https://foro.soybiotec.es/push-service-worker.js) in Chrome gives Discourse custom error 404 page. What could be the problem here?

---

_[View the full topic](https://meta.discourse.org/t/err-invalid-response-trying-to-get-push-service-worker-js/55064)._
