404 Page Breaks when .js is added to the end of a user page

I was wondering if it had something to do with the headers discourse sends out if it detects a .js file ending, but that sounds correct.