Fixed Litespeed sends text/html with CSS 304 responses

Mike

XenForo developer
Staff member
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);
 
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.
 
Back
Top Bottom