• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Litespeed sends text/html with CSS 304 responses

Mike

XenForo developer
Staff member
#1
The issue here manifests itself as refreshing (in Chrome) lose the CSS. This issue appears to be specific to Litespeed, and as far as I know, they've acknowledged it as a bug and have a patch.

However, in XenForo, you can change library/XenForo/CssOutput.php:
Code:
header('HTTP/1.1 304 Not Modified', true, 304);
to:
Code:
header('Content-type: text/css; charset=utf-8', true, 304);
 
A

account8226

Guest
#2
The issue here manifests itself as refreshing (in Chrome) lose the CSS. This issue appears to be specific to Litespeed, and as far as I know, they've acknowledged it as a bug and have a patch.

However, in XenForo, you can change library/XenForo/CssOutput.php:
Code:
header('HTTP/1.1 304 Not Modified', true, 304);
to:
Code:
header('Content-type: text/css; charset=utf-8', true, 304);
I have a bug with Litespeed and TaigaChat (chatbox add-on, that stores the messages in a html file).

When I update from Litespeed 4.1.13 to Litespeed > 4.2, sometimes, when my members sends messages in the shoutbox, there is like one times out of 10 a javascript error "logged in the console". But in the console, I only have the whole taigachat.html file where the messages are stored. So I must stay in 4.1.13.

Do you think it can be because of this ?

Thanks for the fix btw.