Content-Type for some files are randomly missing

Hey! Deploying a pretty standard site on Pages, and files randomly are served without a correct Content-Type, making the application fail. Earlier today the entire index.html was served as plain text, and now there's a JS file missing it's type
4 Replies
daniel_klungo
daniel_klungo2y ago
iCal RSVP helper
RSVP to (almost) any iCal event!
daniel_klungo
daniel_klungo2y ago
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
daniel_klungo
daniel_klungo17mo ago
I ended up adding a file specifying all the content types _headers, see pages docs -> platform -> headers @georg77 :
/
Content-Type: text/html; charset=UTF-8

/*.js
Content-Type: text/javascript

/*.css
Content-Type: text/css
/
Content-Type: text/html; charset=UTF-8

/*.js
Content-Type: text/javascript

/*.css
Content-Type: text/css
Want results from more Discord servers?
Add your server