weavejester / clojure-toolbox.com

Source to clojure-toolbox.com
http://www.clojure-toolbox.com
179 stars 194 forks source link

Site formatting broken due to incorrect MIME types #456

Closed TuggyNE closed 2 years ago

TuggyNE commented 2 years ago

In Firefox and Chrome, CSS served with a mismatched MIME type is blocked, and recently-ish the CSS and JS served from the site instance switched from correct types to the wrong ones, so there is currently no styling. (JS runs correctly, but with a warning.)

weavejester commented 2 years ago

Oh, wow, weird. Let me see if I can figure out what caused that.

weavejester commented 2 years ago

Looks like it's a bug or change in behaviour of s3cmd. The mime magic is overriding the file extension when it comes to guessing the mime type. Adding the --no-mime-magic option forces it to use the extension only.

weavejester commented 2 years ago

Oh, and thanks for the report! It's much appreciated!

TuggyNE commented 2 years ago

Glad you were able to fix this so quickly! You're welcome for the report :)