service-worker.js max-age=0 header

#1

Hello!

As I can see from Google Chrome network console Crossbar.io web server (web transport + static section) add cache-control: max-age=43200 header to all .js files. This is very strongly uncomfortable when doing service worker script.

Response headers:

  1. Accept-Ranges:

bytes

  1. Cache-Control:

max-age=43200, public

  1. Content-Length:

5605

  1. Content-Type:

application/javascript

  1. Date:

Sun, 02 Apr 2017 06:13:24 GMT

  1. Expires:

Sun, 02 Apr 2017 18:13:24 GMT

  1. Last-Modified:

Sat, 01 Apr 2017 16:47:34 GMT

  1. Server:

Crossbar/0.13.2

As you can know service worker should be tested for updating every time user reload page. And max-age=0, private, must-revalidate is much preferable for this.

So my question is how we can ask Crossbar to not add cache-control header for some .js files?

Thanks!

0 Likes