electerious / Ackee

Self-hosted, Node.js based analytics tool for those who care about privacy.
https://ackee.electerious.com
MIT License
4.3k stars 360 forks source link

Please add content-type headers to static assets #56

Closed bayi closed 5 years ago

bayi commented 5 years ago

Currently Ackee isnt adding Content-Type headers for .js and .css files.

Im using traefik to automatically server my containers and get auto ssl certs.

Treafik automatically adds a "text/plan" content type headers for every resource that doesnt have any content-type headers.

This currently breaks the frontend styles, the css is simply ignored by Chrome and i get also problems with the tracker in some browsers ( but in chrome its fine with text/plain ).

electerious commented 5 years ago

Correct content-type headers have been added to the develop branch lately. They're part of the next release :)

https://github.com/electerious/Ackee/blob/develop/CHANGELOG.md

electerious commented 5 years ago

You can use the develop docker tag if you want to take a look at it: https://cloud.docker.com/u/electerious/repository/docker/electerious/ackee

bayi commented 5 years ago

Thank you very much